Skip to content

Commit 6e4a336

Browse files
committed
adds gh token
1 parent e94e47f commit 6e4a336

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ on:
99
# Avoid using all the resources/limits available by checking only
1010
# relevant branches and tags. Other branches can be checked via PRs.
1111
branches: [main]
12-
tags: ['v[0-9]*', '[0-9]+.[0-9]+*'] # Match tags that resemble a version
13-
pull_request: # Run in every PR
14-
workflow_dispatch: # Allow manually triggering the workflow
12+
tags: ["v[0-9]*", "[0-9]+.[0-9]+*"] # Match tags that resemble a version
13+
pull_request: # Run in every PR
14+
workflow_dispatch: # Allow manually triggering the workflow
1515
schedule:
1616
# Run roughly every 15 days at 00:00 UTC
1717
# (useful to check if updates on dependencies break the package)
18-
- cron: '0 0 1,16 * *'
18+
- cron: "0 0 1,16 * *"
1919

2020
concurrency:
2121
group: >-
@@ -31,9 +31,9 @@ jobs:
3131
tarball-path: ${{ steps.distribution-paths.outputs.tarball }}
3232
steps:
3333
- uses: actions/checkout@v3
34-
with: {fetch-depth: 0} # deep clone for setuptools-scm
34+
with: { fetch-depth: 0 } # deep clone for setuptools-scm
3535
- uses: actions/setup-python@v4
36-
with: {python-version: "3.11"}
36+
with: { python-version: "3.11" }
3737
- name: Run static analysis and format checkers
3838
run: pipx run pre-commit run --all-files --show-diff-on-failure
3939
- name: Install tox-gh plugin
@@ -59,18 +59,18 @@ jobs:
5959
uses: gautamkrishnar/keepalive-workflow@1.1.0
6060
with:
6161
time_elapsed: 44
62-
62+
gh_token: ${{ secrets.GITHUB_TOKEN }}
6363

6464
test:
6565
needs: prepare
6666
strategy:
6767
matrix:
6868
python:
69-
- "3.10" # oldest Python supported
70-
- "3.11" # newest Python that is stable
69+
- "3.10" # oldest Python supported
70+
- "3.11" # newest Python that is stable
7171
platform:
72-
- ubuntu-latest
73-
- macos-latest
72+
- ubuntu-latest
73+
- macos-latest
7474
env:
7575
OS: ${{ matrix.platform }}
7676
PYTHON: ${{ matrix.python }}
@@ -81,7 +81,7 @@ jobs:
8181
with:
8282
python-version: ${{ matrix.python }}
8383
- uses: actions/download-artifact@v3
84-
with: {name: python-distribution-files, path: dist/}
84+
with: { name: python-distribution-files, path: dist/ }
8585
- name: Install tox-gh plugin
8686
run: python -m pip install tox-gh>=1.2
8787
- name: Setup test suite
@@ -93,8 +93,8 @@ jobs:
9393
NEXTFLOWTOWER_CONNECTION_URI: ${{ secrets.NEXTFLOWTOWER_CONNECTION_URI }}
9494
SYNAPSE_CONNECTION_URI: ${{ secrets.SYNAPSE_CONNECTION_URI }}
9595
run: >-
96-
tox --installpkg '${{ needs.prepare.outputs.wheel-path }}'
97-
-- -rFEx --durations 10 --color yes
96+
tox --installpkg '${{ needs.prepare.outputs.wheel-path }}'
97+
-- -rFEx --durations 10 --color yes
9898
- name: Upload coverage to Codecov
9999
uses: codecov/codecov-action@v3
100100
with:
@@ -113,9 +113,9 @@ jobs:
113113
steps:
114114
- uses: actions/checkout@v3
115115
- uses: actions/setup-python@v4
116-
with: {python-version: "3.11"}
116+
with: { python-version: "3.11" }
117117
- uses: actions/download-artifact@v3
118-
with: {name: python-distribution-files, path: dist/}
118+
with: { name: python-distribution-files, path: dist/ }
119119
- name: Publish Python Package to PyPI
120120
env:
121121
TWINE_REPOSITORY: pypi
@@ -130,7 +130,7 @@ jobs:
130130
steps:
131131
- uses: actions/checkout@v3
132132
- uses: actions/download-artifact@v3
133-
with: {name: python-distribution-files, path: dist/}
133+
with: { name: python-distribution-files, path: dist/ }
134134
- uses: docker/setup-qemu-action@v2
135135
- uses: docker/setup-buildx-action@v2
136136
- uses: docker/login-action@v2

0 commit comments

Comments
 (0)