Skip to content

Commit c05d944

Browse files
authored
Merge pull request #354 from lordmauve/update-actions
Update GitHub Action versions
2 parents 24036bb + 57ce16d commit c05d944

File tree

2 files changed

+23
-21
lines changed

2 files changed

+23
-21
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@ jobs:
44
build:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v2
7+
- name: Install xvfb and pulseaudio
8+
run: |
9+
sudo apt update
10+
sudo apt install -y xvfb pulseaudio
11+
- uses: actions/checkout@v4
812
- name: Set up Python 3.x
9-
uses: actions/setup-python@v2
13+
uses: actions/setup-python@v5
1014
with:
11-
python-version: 3.x
15+
python-version: '3.12'
1216
- name: Install dependencies
1317
run: |
1418
python -m pip install --upgrade pip
@@ -21,18 +25,14 @@ jobs:
2125
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
2226
# stricter tests for mission critical code
2327
flake8 --count src test
24-
25-
- name: Install xvfb and pulseaudio
26-
run: |
27-
sudo apt-get install xvfb pulseaudio
2828
- name: Run tests under xvfb
2929
run: |
3030
export XDG_RUNTIME_DIR="$RUNNER_TEMP"
3131
pulseaudio -D --start
3232
xvfb-run --auto-servernum pytest
3333
- name: Cleanup xvfb pidx
3434
uses: bcomnes/cleanup-xvfb@v1
35-
- uses: actions/upload-artifact@master
35+
- uses: actions/upload-artifact@v4
3636
if: ${{ failure() }}
3737
with:
3838
name: failed-image

.github/workflows/wheels.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
name: "Build Wheels"
22

33
on:
4-
workflow_dispatch:
54
push:
6-
release:
7-
types:
8-
- published
5+
branches:
6+
- main
7+
tags:
8+
- 'v*.*.*'
99

1010
jobs:
1111
buildpackage:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v1
15-
- uses: actions/setup-python@v2
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-python@v4
1616
with:
17-
python-version: 3.8
17+
python-version: 3.12
1818

1919
- name: Install wheel and SDist requirements
2020
run: python -m pip install "setuptools>=42.0" wheel twine
2121

2222
- name: Build SDist
2323
run: python setup.py sdist bdist_wheel
2424

25-
- uses: actions/upload-artifact@v2
25+
- uses: actions/upload-artifact@v4
2626
with:
2727
path: |
2828
dist/*.tar.gz
@@ -33,13 +33,15 @@ jobs:
3333
runs-on: ubuntu-latest
3434
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
3535

36+
permissions:
37+
id-token: write
38+
39+
environment: release
40+
3641
steps:
37-
- uses: actions/download-artifact@v2
42+
- uses: actions/download-artifact@v4
3843
with:
3944
name: artifact
4045
path: dist
4146

42-
- uses: pypa/gh-action-pypi-publish@master
43-
with:
44-
user: __token__
45-
password: ${{ secrets.pypi_password }}
47+
- uses: pypa/[email protected]

0 commit comments

Comments
 (0)