.github/workflows/ci.yaml
---
name: CI
on:
pull_request:
branches:
- dev
- master
push:
branches:
- dev
- master
jobs:
test:
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.9"
- "3.10"
- "3.11"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- run: |
python -m venv venv
venv/bin/pip install -r requirements_test.txt
venv/bin/py.test tests/
coverage:
name: Test Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.x"
architecture: x64
- run: |
python -m venv venv
venv/bin/pip install -r requirements_test.txt
venv/bin/py.test \
-s \
--verbose \
--cov-report term-missing \
--cov-report xml \
--cov=py17track tests
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
lint:
name: "Linting & Static Analysis"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.x"
architecture: x64
- uses: pre-commit/action@v3.0.0
env:
SKIP: no-commit-to-branch