Skip to content

wip

wip #113

Workflow file for this run

name: CI
on:
push:
jobs:
cancel-previous:
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/master'
steps:
- uses: khan/[email protected]
with:
workflows: CI
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
lint:
runs-on: ubuntu-latest
steps:
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
cache: pip
- name: Checkout repository
uses: actions/checkout@v3
with:
lfs: true
- name: Install test dependencies via pip
run: pip install -r requirements/test_black.txt
- name: Lint
run: make lint
build:
runs-on: ubuntu-latest
needs: lint
strategy:
matrix:
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
steps:
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python-version }}"
cache: pip
- name: Checkout repository
uses: actions/checkout@v3
with:
lfs: true
- name: Install test dependencies via pip
run: pip install -r requirements/test_black.txt
- name: Run tests
run: |
make test
coverage report
coverage xml
- name: Upload Python coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
flags: python
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}