From 26ae84d4bfaa364c9bb692e7abf0453f3e4a9097 Mon Sep 17 00:00:00 2001 From: finlayclark Date: Tue, 17 Sep 2024 14:43:20 +0100 Subject: [PATCH] Update CI to lint, type-check, and check formatting --- .github/workflows/CI.yaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index bef84e1..42d1a88 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -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