From b3523208303a2578154225c3a2c424b45fe75cd0 Mon Sep 17 00:00:00 2001 From: "Sterling G. Baird" Date: Sat, 24 Feb 2024 01:03:51 -0500 Subject: [PATCH] 19 runners per python version So, total 38 runners for a given run. Note that there's a max of 40 runners across all repositories for my account (if I understood correctly): https://docs.github.com/en/actions/learn-github-actions/usage-limits-billing-and-administration#usage-limits Jobs past this limit will get queued --- .github/workflows/ci.yml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a655974d..b1f73803 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,16 +14,13 @@ on: workflow_dispatch: # Allow manually triggering the workflow schedule: # Run roughly every 15 days at 00:00 UTC - # (useful to check if updates on dependencies break the package) - - cron: '0 0 1,16 * *' + - cron: '0 0 1,16 * *' # Run roughly every 15 days at 00:00 UTC permissions: contents: read concurrency: - group: >- - ${{ github.workflow }}-${{ github.ref_type }}- - ${{ github.event.pull_request.number || github.sha }} + group: ${{ github.workflow }}-${{ github.ref_type }}-${{ github.event.pull_request.number || github.sha }} cancel-in-progress: true jobs: @@ -40,9 +37,7 @@ jobs: - name: Run static analysis and format checkers run: pipx run pre-commit run --all-files --show-diff-on-failure - name: Build package distribution files - run: >- - pipx run --python '${{ steps.setup-python.outputs.python-path }}' - tox -e clean,build + run: pipx run --python '${{ steps.setup-python.outputs.python-path }}' tox -e clean,build - name: Record the path of wheel distribution id: wheel-distribution run: echo "path=$(ls dist/*.whl)" >> $GITHUB_OUTPUT @@ -66,6 +61,7 @@ jobs: - ubuntu-latest # - macos-latest # - windows-latest + group: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] # number of groups runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v3 @@ -77,10 +73,6 @@ jobs: uses: actions/download-artifact@v3 with: {name: python-distribution-files, path: dist/} - name: Run tests - run: >- - pipx run --python '${{ steps.setup-python.outputs.python-path }}' - tox --installpkg '${{ needs.prepare.outputs.wheel-distribution }}' - -- -rFEx --durations 10 --color yes # pytest args # - name: Generate coverage report # run: pipx run coverage lcov -o coverage.lcov # - name: Upload partial coverage report @@ -116,7 +108,7 @@ jobs: with: {name: python-distribution-files, path: dist/} - name: Publish Package env: - # TODO: Set your PYPI_TOKEN as a secret using GitHub UI + # Ensure PYPI_TOKEN set as a secret using GitHub UI # - https://pypi.org/help/#apitoken # - https://docs.github.com/en/actions/security-guides/encrypted-secrets TWINE_REPOSITORY: pypi