[pre-commit.ci] pre-commit autoupdate #286
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: CI | |
on: | |
push: | |
branches: "*" | |
pull_request: | |
branches: main | |
jobs: | |
test: | |
name: ${{ matrix.python-version }}-build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.8, 3.9] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 | |
- uses: actions/[email protected] | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/dev-requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- run: | | |
python -m pip install -r dev-requirements.txt | |
python -m pip install --no-deps -e . | |
python -m pip list | |
- name: Running Tests | |
run: | | |
python -m pytest --junitxml=test-reports/junit.xml --cov=./ --verbose | |
- name: Upload coverage to Codecov | |
uses: codecov/[email protected] | |
with: | |
file: test-reports/junit.xml |