Update to Python 3.12 and update all Python dependencies #120
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: Quality Assurance | |
# We run on all branches and also for pull-requests | |
on: | |
push: {} | |
pull_request: | |
branches: | |
- master | |
- develop | |
jobs: | |
qa_checks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build Docker image | |
run: docker build -t qa --file .devcontainer/Dockerfile . | |
- name: Start Docker container | |
run: docker run --rm --name qa_ctr -v $PWD:/app -w /app -d qa:latest sleep infinity | |
- name: Install Python dependencies | |
run: docker exec qa_ctr pipenv sync --dev | |
- name: Run code format check | |
run: docker exec qa_ctr pipenv run ./scripts/format.sh --check | |
- name: Run pylint | |
run: docker exec qa_ctr pipenv run ./scripts/pylint.sh | |
- name: Run mypy | |
run: docker exec qa_ctr pipenv run ./scripts/mypy.sh | |
- name: Run pytest | |
run: docker exec qa_ctr pipenv run ./scripts/pytest.sh | |
- name: Stop and tidy up | |
run: docker stop qa_ctr |