Skip to content

Commit

Permalink
ci: split lint and typecheck into separate jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Oct 31, 2023
1 parent c00b979 commit 0489658
Showing 1 changed file with 41 additions and 6 deletions.
47 changes: 41 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,48 @@ jobs:
TERM: xterm
run: |
make test SLOW=true
- name: Typecheck
run: |
make typecheck
- name: Check for lint
run: |
make lint
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'poetry'
- name: Install poetry
run: |
pip install poetry
- name: Install dependencies
run: |
make build
poetry install
- name: Check for lint
run: |
make lint
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'poetry'
- name: Install poetry
run: |
pip install poetry
- name: Install dependencies
run: |
make build
poetry install
- name: Typecheck
run: |
make typecheck

0 comments on commit 0489658

Please sign in to comment.