Skip to content

Commit 03f5fe0

Browse files
committed
BLD: Upgrade GitHub actions workflows
1 parent 4b53bc5 commit 03f5fe0

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
workflow_run:
77
workflows:
88
- test
9-
branches: [ main ]
9+
branches: [main]
1010
types:
1111
- completed
1212

@@ -25,7 +25,7 @@ jobs:
2525

2626
# Python setup
2727
- name: Set up Python environment
28-
uses: actions/setup-python@v2
28+
uses: actions/setup-python@v4
2929
with:
3030
python-version: "3.10"
3131

@@ -64,7 +64,7 @@ jobs:
6464
prerelease: false
6565

6666
publish-sdist:
67-
needs: [ tag-release ]
67+
needs: [tag-release]
6868
name: publish-sdist - Python 3.10 (ubuntu-latest)
6969
runs-on: ubuntu-latest
7070

@@ -73,7 +73,7 @@ jobs:
7373

7474
# Python setup
7575
- name: Set up Python environment
76-
uses: actions/setup-python@v2
76+
uses: actions/setup-python@v4
7777
with:
7878
python-version: "3.10"
7979

@@ -119,7 +119,7 @@ jobs:
119119
run: twine upload dist/*
120120

121121
publish-wheel:
122-
needs: [ tag-release ]
122+
needs: [tag-release]
123123
name: publish-wheel - Python 3.10 (ubuntu-latest)
124124
runs-on: ubuntu-latest
125125

@@ -128,7 +128,7 @@ jobs:
128128

129129
# Python setup
130130
- name: Set up Python environment
131-
uses: actions/setup-python@v2
131+
uses: actions/setup-python@v4
132132
with:
133133
python-version: "3.10"
134134

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ name: test
44

55
on:
66
push:
7-
branches: [ main, dev ]
7+
branches: [main, dev]
88

99
jobs:
1010
test:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
os: [ ubuntu-latest, macos-latest, windows-latest ]
15-
python-version: [ "3.7", "3.8", "3.9", "3.10" ]
14+
os: [ubuntu-latest, macos-latest, windows-latest]
15+
python-version: ["3.7", "3.8", "3.9", "3.10"]
1616
name: build - Python ${{ matrix.python-version }} (${{ matrix.os }})
1717
runs-on: ${{ matrix.os }}
1818

@@ -21,7 +21,7 @@ jobs:
2121

2222
# Python setup
2323
- name: Set up Python environment
24-
uses: actions/setup-python@v2
24+
uses: actions/setup-python@v4
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727

0 commit comments

Comments
 (0)