From 9c9995ec587c0294649fcd7db3175b50ad4be2ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Deuchnord?= Date: Wed, 11 May 2022 14:54:35 +0200 Subject: [PATCH 1/2] Update GitHub Actions automatically --- .github/dependabot.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index ba1c6b8..62f0c6e 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -7,5 +7,13 @@ version: 2 updates: - package-ecosystem: "pip" # See documentation for possible values directory: "/" # Location of package manifests + open-pull-requests-limit: 5 schedule: interval: "daily" + + - package-ecosystem: github-actions + directory: "/" + open-pull-requests-limit: 5 + target-branch: main + schedule: + interval: weekly From 47aeb233ed672b7a9d67b2b054eb7cef8f157902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Deuchnord?= Date: Wed, 11 May 2022 15:05:12 +0200 Subject: [PATCH 2/2] CI: parallelize the coverage calculation --- .github/workflows/tests.yml | 36 ++++++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d23dea1..b402208 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -37,15 +37,39 @@ jobs: python3 -mpip install -U pip poetry poetry install - - name: Run tests (with coverage) - if: ${{ matrix.os == 'ubuntu-latest' && matrix.python_version == '3.10' }} + - name: Run tests env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | poetry run coverage run tests.py - poetry run coveralls --service=github - - name: Run tests (without coverage) - if: ${{ matrix.os != 'ubuntu-latest' || matrix.python_version != '3.10' }} + - name: Analyze coverage run: | - make tests + poetry run coveralls --service=github + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COVERALLS_PARALLEL: true + COVERALLS_FLAG_NAME: "Py${{ matrix.python_version }}_${{ matrix.os }}" + + coverage: + name: Push coverage report + needs: doc-tests + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Prepare Python + uses: actions/setup-python@v2 + with: + python-version: "3.x" + + - name: Install dependencies + run: | + pip install -U pip poetry + poetry install + + - name: Upload coverage report + run: | + poetry run coveralls --finish --service=github + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}