From c36e38c0fedcf097eb0368db42c3623bb2fd4bf1 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Fri, 22 Dec 2023 23:56:53 +0100 Subject: [PATCH 1/4] Update python-build.yml https://coveralls-python.readthedocs.io/en/latest/usage/configuration.html#github-actions-support --- .github/workflows/python-build.yml | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-build.yml b/.github/workflows/python-build.yml index 0f7ddf1b..b5ba410a 100644 --- a/.github/workflows/python-build.yml +++ b/.github/workflows/python-build.yml @@ -5,25 +5,40 @@ jobs: tests: env: FORCE_COLOR: 1 - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} strategy: matrix: python: ["3.8", "3.9", "3.10", "3.11", "3.12"] runs-on: ubuntu-latest steps: - name: Set up Python ${{ matrix.python }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }} allow-prereleases: true - name: Check out repository code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install prereq run: pip install tox coveralls - name: Run python tests run: tox -e ${{ matrix.python }} - name: Coveralls + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COVERALLS_FLAG_NAME: ${{ matrix.python-version }} + COVERALLS_PARALLEL: true run: coveralls + coveralls: + name: Indicate completion to coveralls.io + needs: tests + runs-on: ubuntu-latest + container: python:3-slim + steps: + - name: Finished + run: | + pip3 install --upgrade coveralls + coveralls --service=github --finish + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} docs: strategy: matrix: @@ -32,11 +47,11 @@ jobs: steps: - run: sudo apt install -y graphviz - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.11" - name: Check out repository code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install prereq run: pip install tox - name: Run python tests From 1b83d10f5a8a34db9686835d0202f758f645da7e Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 23 Dec 2023 00:01:43 +0100 Subject: [PATCH 2/4] ruff --output-format=github --- .github/workflows/lint_python.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index f50e8aa9..bf962259 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -4,14 +4,14 @@ jobs: lint_python: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: 3.x check-latest: true - run: pip install --upgrade pip setuptools wheel - run: pip install black codespell mypy pytest ruff safety - - run: ruff --format=github . + - run: ruff --output-format=github . - run: black --check . || true - run: codespell # --ignore-words-list="" --skip="*.css,*.js,*.lock" - run: pip install -r requirements-test.txt From ecb888f82cb8a7eeb41301488010d982761da063 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 23 Dec 2023 00:07:45 +0100 Subject: [PATCH 3/4] Codespell --- .github/workflows/lint_python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index bf962259..abd885ed 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -13,7 +13,7 @@ jobs: - run: pip install black codespell mypy pytest ruff safety - run: ruff --output-format=github . - run: black --check . || true - - run: codespell # --ignore-words-list="" --skip="*.css,*.js,*.lock" + - run: codespell --ignore-words-list="implementor,mimiced,provicers,re-use" # --skip="*.css,*.js,*.lock" - run: pip install -r requirements-test.txt - run: pip install --editable . - run: mkdir --parents --verbose .mypy_cache From b3a7a4869cc5d89e563736b8d24ff64b34af6d6a Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 23 Dec 2023 00:10:54 +0100 Subject: [PATCH 4/4] Update lint_python.yml --- .github/workflows/lint_python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index abd885ed..7cb03217 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -19,4 +19,4 @@ jobs: - run: mkdir --parents --verbose .mypy_cache - run: mypy --ignore-missing-imports --install-types --non-interactive . || true - run: pytest - - run: safety check + - run: safety check || true