ci: enable github actions

This commit is contained in:
Felix Spöttel
2023-02-08 14:15:50 +01:00
parent 18921d34c6
commit 27d8ba743e
4 changed files with 27 additions and 24 deletions

View File

@@ -9,13 +9,14 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.10'
cache: 'pip'
- pip install -e .[dev]
- black --check app
- isort --check app
- flake8 app
- mypy app
cache-dependency-path: '**/pyproject.toml'
- run: pip install -e .[web,tooling]
- run: black --check app
- run: isort --check app
- run: flake8 app
- run: mypy app
test:
runs-on: ubuntu-latest
name: Test
@@ -23,7 +24,8 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.10'
cache: 'pip'
- pip install -e .[test]
- pytest
cache-dependency-path: '**/pyproject.toml'
- run: pip install -e .[web,tooling]
- run: pytest