From 1581094189efb1d219ae96b5ff1cb695ce0ff6e8 Mon Sep 17 00:00:00 2001 From: Juliette-Gerbaux Date: Wed, 11 Dec 2024 12:23:00 +0100 Subject: [PATCH] Update ci --- .github/workflows/ci.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 54f5104..be666ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,11 +29,31 @@ jobs: - name: Test run: | - pytest + pytest --cov --cov-report xml + + - name: Archive code coverage results + uses: actions/upload-artifact@v4 + with: + name: python-code-coverage-report + path: coverage.xml - name: Check typing run: | python -m mypy src + - name: Check imports sort order + uses: isort/isort-action@v1 + with: + sort-paths: src, tests + configuration: --profile black --check-only --diff + requirements-files: "requirements.txt requirements-dev.txt" + + - name: Check formatting + uses: psf/black@stable + with: + # Version of Black should match the versions set in `requirements-dev.txt` + version: "~=23.7.0" + options: --check --diff +