Skip to content

Commit

Permalink
adds gh token
Browse files Browse the repository at this point in the history
  • Loading branch information
BWMac committed Jun 17, 2024
1 parent e94e47f commit 6e4a336
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ on:
# Avoid using all the resources/limits available by checking only
# relevant branches and tags. Other branches can be checked via PRs.
branches: [main]
tags: ['v[0-9]*', '[0-9]+.[0-9]+*'] # Match tags that resemble a version
pull_request: # Run in every PR
workflow_dispatch: # Allow manually triggering the workflow
tags: ["v[0-9]*", "[0-9]+.[0-9]+*"] # Match tags that resemble a version
pull_request: # Run in every PR
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 * *"

concurrency:
group: >-
Expand All @@ -31,9 +31,9 @@ jobs:
tarball-path: ${{ steps.distribution-paths.outputs.tarball }}
steps:
- uses: actions/checkout@v3
with: {fetch-depth: 0} # deep clone for setuptools-scm
with: { fetch-depth: 0 } # deep clone for setuptools-scm
- uses: actions/setup-python@v4
with: {python-version: "3.11"}
with: { python-version: "3.11" }
- name: Run static analysis and format checkers
run: pipx run pre-commit run --all-files --show-diff-on-failure
- name: Install tox-gh plugin
Expand All @@ -59,18 +59,18 @@ jobs:
uses: gautamkrishnar/[email protected]
with:
time_elapsed: 44

gh_token: ${{ secrets.GITHUB_TOKEN }}

test:
needs: prepare
strategy:
matrix:
python:
- "3.10" # oldest Python supported
- "3.11" # newest Python that is stable
- "3.10" # oldest Python supported
- "3.11" # newest Python that is stable
platform:
- ubuntu-latest
- macos-latest
- ubuntu-latest
- macos-latest
env:
OS: ${{ matrix.platform }}
PYTHON: ${{ matrix.python }}
Expand All @@ -81,7 +81,7 @@ jobs:
with:
python-version: ${{ matrix.python }}
- uses: actions/download-artifact@v3
with: {name: python-distribution-files, path: dist/}
with: { name: python-distribution-files, path: dist/ }
- name: Install tox-gh plugin
run: python -m pip install tox-gh>=1.2
- name: Setup test suite
Expand All @@ -93,8 +93,8 @@ jobs:
NEXTFLOWTOWER_CONNECTION_URI: ${{ secrets.NEXTFLOWTOWER_CONNECTION_URI }}
SYNAPSE_CONNECTION_URI: ${{ secrets.SYNAPSE_CONNECTION_URI }}
run: >-
tox --installpkg '${{ needs.prepare.outputs.wheel-path }}'
-- -rFEx --durations 10 --color yes
tox --installpkg '${{ needs.prepare.outputs.wheel-path }}'
-- -rFEx --durations 10 --color yes
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
Expand All @@ -113,9 +113,9 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with: {python-version: "3.11"}
with: { python-version: "3.11" }
- uses: actions/download-artifact@v3
with: {name: python-distribution-files, path: dist/}
with: { name: python-distribution-files, path: dist/ }
- name: Publish Python Package to PyPI
env:
TWINE_REPOSITORY: pypi
Expand All @@ -130,7 +130,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with: {name: python-distribution-files, path: dist/}
with: { name: python-distribution-files, path: dist/ }
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
Expand Down

0 comments on commit 6e4a336

Please sign in to comment.