Skip to content

Commit dcdd92e

Browse files
committed
.github/workflows/action: update build logic
Adopt new versions of GitHub plugins and build libraries. Store build artifacts on GitHub.
1 parent eea13f2 commit dcdd92e

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/action.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,32 @@ jobs:
55
runs-on: ${{ matrix.os }}
66
strategy:
77
matrix:
8-
os: [ubuntu-latest, macos-latest, windows-latest]
8+
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
99
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', 'pypy-3.10']
1010
exclude:
1111
- os: windows-latest
1212
python-version: 'pypy-3.10'
1313
- os: macos-latest
1414
python-version: 'pypy-3.10'
1515
steps:
16-
- uses: actions/checkout@v2
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
1718
- name: Set up Python ${{ matrix.python-version }}
18-
uses: actions/setup-python@v2
19+
uses: actions/setup-python@v5
1920
with:
2021
python-version: ${{ matrix.python-version }}
2122
- name: Install dependencies
2223
run: |
23-
python -m pip install --upgrade pip pytest
24-
python -m pip install .
24+
python -m pip install --upgrade pip build pytest
25+
- name: Build wheel package
26+
run: |
27+
python -m build --sdist --wheel
2528
- name: Run tests
2629
run: |
2730
python -m pytest -sv
31+
- name: Store build artifacts
32+
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.13' }}
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: artifacts
36+
path: dist

0 commit comments

Comments
 (0)