fix(cd): add runs-on
#36
This file contains hidden or 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: CI | |
| on: [push, pull_request] | |
| jobs: | |
| ruff: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: ruff | |
| run: docker compose -f deploy/dev/docker-compose.yaml run tgdb ruff check src tests | |
| mypy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: mypy | |
| run: docker compose -f deploy/dev/docker-compose.yaml run tgdb mypy src tests | |
| pytest: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: pytest | |
| run: docker compose -f deploy/dev/docker-compose.yaml run tgdb pytest tests --cov --cov-report=xml | |
| - name: upload coverage reports to codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |