Skip to content

Commit e3d8719

Browse files
author
Bas van Beek
committed
CI: Github Actions update
1 parent acd82a1 commit e3d8719

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

.github/workflows/pypi.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ jobs:
88
publish:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v3
1212

1313
- name: Set up Python
14-
uses: actions/setup-python@v1
14+
uses: actions/setup-python@v4
15+
with:
16+
python-version: "3.x"
1517

1618
- name: Python info
1719
run: |
@@ -25,7 +27,7 @@ jobs:
2527
run: python setup.py sdist bdist_wheel
2628

2729
- name: Publish the package
28-
uses: pypa/gh-action-pypi-publish@master
30+
uses: pypa/gh-action-pypi-publish@release/v1
2931
with:
3032
user: __token__
3133
password: ${{ secrets.PYPI_TOKEN }}

.github/workflows/pythonpackage.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
- master
1010
pull_request:
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
build:
1418
name: ${{ matrix.os }} (py ${{ matrix.python-version }}${{ matrix.special }})
@@ -28,15 +32,10 @@ jobs:
2832
python-version: "3.10"
2933

3034
steps:
31-
- name: Cancel Previous Runs
32-
uses: styfle/[email protected]
33-
with:
34-
access_token: ${{ github.token }}
35-
36-
- uses: actions/checkout@v2
35+
- uses: actions/checkout@v3
3736

3837
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
39-
uses: actions/setup-python@v2
38+
uses: actions/setup-python@v4
4039
with:
4140
python-version: ${{ matrix.python-version }}
4241

@@ -71,20 +70,20 @@ jobs:
7170
esac
7271
7372
- name: Run codecov
74-
uses: codecov/codecov-action@v2
73+
uses: codecov/codecov-action@v3
7574
with:
7675
file: ./coverage.xml
7776
name: codecov-umbrella
7877

7978
Linting:
8079
runs-on: ubuntu-latest
8180
steps:
82-
- uses: actions/checkout@v2
81+
- uses: actions/checkout@v3
8382

84-
- name: Set up Python 3.10 on ubuntu-latest
85-
uses: actions/setup-python@v2
83+
- name: Set up Python on ubuntu-latest
84+
uses: actions/setup-python@v4
8685
with:
87-
python-version: "3.10"
86+
python-version: "3.x"
8887

8988
- name: Install linters
9089
run: |

0 commit comments

Comments
 (0)