Skip to content

Commit

Permalink
Merge pull request #44 from Sage-Bionetworks-Workflows/bwmac/add_gh_t…
Browse files Browse the repository at this point in the history
…oken_to_keepalive

Adds `gh_token` to KeepAlive workflow
  • Loading branch information
BWMac authored Jun 17, 2024
2 parents e94e47f + 6e4a336 commit 3ebfa73
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 3ebfa73

Please sign in to comment.