Skip to content

Use outputs: type=docker for step 1, to store the output in the local… #403

Use outputs: type=docker for step 1, to store the output in the local…

Use outputs: type=docker for step 1, to store the output in the local… #403

Workflow file for this run

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