Skip to content

Commit

Permalink
Update CI to lint, type-check, and check formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
fjclark committed Sep 17, 2024
1 parent 5824cb5 commit 26ae84d
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,31 @@ jobs:
# conda setup requires this special shell
shell: bash -l {0}
run: |
apt update && apt install -y git make
python -m pip install . --no-deps
micromamba list
- name: Check formatting
shell: bash -l {0}
run: |
make format
git diff --exit-code
- name: Lint
shell: bash -l {0}
run: |
make lint
- name: Type check
shell: bash -l {0}
run: |
make type-check
- name: Run tests
# conda setup requires this special shell
shell: bash -l {0}
run: |
pytest -v --cov=red --cov-report=xml --color=yes red/tests/
make test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
Expand Down

0 comments on commit 26ae84d

Please sign in to comment.