Skip to content

Commit

Permalink
19 runners per python version
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sgbaird committed Feb 24, 2024
1 parent 5872306 commit b352320
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b352320

Please sign in to comment.