Pydriller workflow #1549
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pydriller workflow | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest, windows-latest] | |
python: [ '3.7.x', '3.8.x', '3.9.x', '3.10.x', '3.11.x' ] | |
name: Python ${{ matrix.python }} sample on ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install dependencies and unzip test-repos | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install -r test-requirements.txt | |
pip install pytest-cov | |
unzip test-repos | |
- name: Run pytest | |
run: pytest tests/ --cov=pydriller/ --cov-report=xml | |
- name: Mypy | |
run: | | |
pip install mypy | |
mypy --ignore-missing-imports pydriller/ tests/ | |
- name: Lint with flake8 | |
run: | | |
pip install flake8 | |
flake8 | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: coverage.xml |