Update Dockerfile #10
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: Docker CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Run lint and type checks | |
run: | | |
docker compose run --rm app sh -c "mypy . && ruff check . && ruff format" | |
- name: Run tests | |
run: | | |
docker compose run --rm app pytest | |