[pre-commit.ci] pre-commit autoupdate (#324) #462
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
# This workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Python application | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build docker stack | |
run: docker compose build | |
- name: Start docker stack | |
run: docker compose up -d | |
- name: Check with mypy | |
run: docker compose exec test mypy . | |
- name: Test with pytest | |
run: docker compose exec test pytest || (docker compose logs sertifikatsok && return 1) |