Skip to content

Commit 8c0bb08

Browse files
authored
Merge pull request #262 from MetRonnie/actions
GH Actions: automatically use latest `pypa/gh-action-pypi-publish`
2 parents d6bcb12 + 4890412 commit 8c0bb08

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.github/workflows/auto_publish_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
uses: cylc/release-actions/build-python-package@v1
3939

4040
- name: Publish distribution to PyPI
41-
uses: pypa/gh-action-pypi-publish@v1.12.2
41+
uses: pypa/gh-action-pypi-publish@release/v1
4242
with:
4343
user: __token__ # uses the API token feature of PyPI - least permissions possible
4444
password: ${{ secrets.PYPI_TOKEN }}

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
workflow_dispatch:
77
pull_request:
88
paths:
9+
- '.github/workflows/build.yml'
910
- 'README.md' # check markdown is valid
1011
- 'MANIFEST.in' # check packaging
1112
- 'pyproject.toml' # check build config
@@ -24,10 +25,12 @@ jobs:
2425
strategy:
2526
matrix:
2627
os: ['ubuntu-latest']
27-
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
28+
python: ['3.8', '3.9', '3.10', '3.11', '3.x']
2829
include:
29-
- os: 'macos-latest'
30+
- os: ubuntu-22.04
3031
python: '3.7'
32+
- os: 'macos-latest'
33+
python: '3.9'
3134
name: ${{ matrix.os }} py-${{ matrix.python }}
3235
steps:
3336
- name: Checkout

.github/workflows/test.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
matrix:
2222
os: [ubuntu-latest]
23-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
23+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
2424
coverage: [false]
2525
include:
2626
# Modify existing configurations:
@@ -29,11 +29,14 @@ jobs:
2929
coverage: false
3030
tz: 'XXX-05:30' # UTC+05:30
3131
# Add new configurations:
32+
- os: ubuntu-22.04
33+
python-version: '3.7'
34+
coverage: false
3235
- os: ubuntu-latest
33-
python-version: '3.12'
36+
python-version: '3.x'
3437
coverage: true
3538
- os: macos-latest
36-
python-version: '3.12'
39+
python-version: '3.9'
3740
coverage: false
3841
name: ${{ matrix.os }} py-${{ matrix.python-version }} ${{ matrix.tz }} ${{ matrix.coverage && '(coverage)' || '' }}
3942
env:

0 commit comments

Comments
 (0)