2023-04-21 15:08:43 +02:00
|
|
|
name: CI
|
2023-03-13 20:55:31 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
2023-04-21 15:08:43 +02:00
|
|
|
test-and-check:
|
|
|
|
name: Tests and checks
|
|
|
|
uses: daniil-berg/reusable-workflows/.github/workflows/python-test.yaml@v0.0.1
|
|
|
|
with:
|
|
|
|
versions: '["3.9", "3.10", "3.11"]'
|
|
|
|
cache: pip
|
|
|
|
cache-dependency-path: pyproject.toml
|
|
|
|
unittest-command: 'scripts/test.sh'
|
|
|
|
coverage-command: 'scripts/cov.sh'
|
|
|
|
unittest-requirements: "-e '.[dev]'"
|
|
|
|
typecheck-command: 'scripts/typecheck.sh'
|
|
|
|
typecheck-requirements: '-Ur requirements/dev.txt'
|
|
|
|
typecheck-all-versions: true
|
|
|
|
lint-command: 'scripts/lint.sh'
|
|
|
|
lint-requirements: '-Ur requirements/dev.txt'
|