Skip to content

Commit 5fefa6d

Browse files
Merge pull request #53 from hhslepicka/ci/fix-pypi
CI: Update workflows.
2 parents 31afc7e + e2a359c commit 5fefa6d

File tree

3 files changed

+17
-12
lines changed

3 files changed

+17
-12
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,26 @@ on:
44
push:
55
pull_request:
66

7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
711
jobs:
812
build:
913
runs-on: ${{ matrix.os }}
1014
defaults:
1115
run:
1216
shell: bash
1317
strategy:
18+
fail-fast: false
1419
matrix:
15-
os: [ubuntu-latest]
16-
python-version: [3.7]
20+
os: [ubuntu-latest]
21+
python-version: ["3.9", "3.12"]
1722
steps:
18-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v4
1924

2025
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v2
26+
uses: actions/setup-python@v5
2227
with:
2328
python-version: ${{ matrix.python-version }}
2429

.github/workflows/linter.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
strategy:
1414
matrix:
1515
os: [ubuntu-latest]
16-
python-version: [3.7]
16+
python-version: [3.11]
1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v4
1919

2020
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v2
21+
uses: actions/setup-python@v5
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424

.github/workflows/pypi_upload.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- uses: actions/checkout@master
11+
- uses: actions/checkout@v4
1212
with:
1313
fetch-depth: 0
14-
- name: Set up Python 3.7
15-
uses: actions/setup-python@v1
14+
- name: Set up Python 3.11
15+
uses: actions/setup-python@v5
1616
with:
17-
python-version: 3.7
17+
python-version: "3.11"
1818
- name: Install pypa/build
1919
run: >-
2020
python -m
@@ -30,6 +30,6 @@ jobs:
3030
.
3131
- name: Publish distribution to PyPI
3232
if: startsWith(github.ref, 'refs/tags')
33-
uses: pypa/gh-action-pypi-publish@master
33+
uses: pypa/gh-action-pypi-publish@release/v1
3434
with:
3535
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)