Trigger base image build #396
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: lint and test the code | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/install-dependencies | |
- name: Lint with isort | |
run: | | |
poetry run isort -c . | |
- name: Lint with flake8 | |
run: | | |
poetry run flake8 . | |
- name: Lint with black | |
run: | | |
poetry run black --check . | |
mypy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/install-dependencies | |
- name: Check with mypy | |
run: | | |
poetry run mypy . | |
tests: | |
runs-on: ubuntu-latest | |
needs: [lint, mypy] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/install-dependencies | |
- name: Run tests | |
run: | | |
DISABLE_FIRESTORE=1 poetry run pytest tests |