Skip to content

Commit 64291d7

Browse files
committed
Fixup GitHub actions
- pin to ubuntu-20.04 to work around actions/setup-python#544 - switch to setup-python@v4 - only build wheels and attempt to publish on release
1 parent 1f79947 commit 64291d7

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

.github/workflows/nox-test.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
lint:
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-20.04
1212
name: Lint
1313
steps:
1414
- uses: actions/checkout@v3
@@ -17,10 +17,9 @@ jobs:
1717
run: git submodule update --init --recursive
1818

1919
- name: Setup python
20-
uses: actions/setup-python@v3
20+
uses: actions/setup-python@v4
2121
with:
2222
python-version: '3.11'
23-
architecture: x64
2423

2524
- name: Setup virtualenv
2625
run: |
@@ -34,7 +33,7 @@ jobs:
3433
noxenv/bin/nox
3534
3635
test:
37-
runs-on: ubuntu-latest
36+
runs-on: ubuntu-20.04
3837
strategy:
3938
fail-fast: false
4039
matrix:
@@ -48,10 +47,9 @@ jobs:
4847
run: git submodule update --init --recursive
4948

5049
- name: Setup python
51-
uses: actions/setup-python@v3
50+
uses: actions/setup-python@v4
5251
with:
5352
python-version: ${{ matrix.python-version }}
54-
architecture: x64
5553

5654
- name: Setup virtualenv
5755
run: |

.github/workflows/pypi-publish.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ name: Build Wheels
66
on:
77
release:
88
types: [created, edited]
9-
push:
10-
pull_request:
11-
types: [opened, reopened, edited, synchronize]
129

1310
jobs:
1411
build_wheels:
@@ -30,7 +27,7 @@ jobs:
3027
repository: github/cmark-gfm
3128
path: cmark-gfm
3229

33-
- uses: actions/setup-python@v3
30+
- uses: actions/setup-python@v4
3431
name: Install Python
3532
with:
3633
python-version: '3.11'

0 commit comments

Comments
 (0)