Skip to content

Commit

Permalink
Merge pull request #262 from MetRonnie/actions
Browse files Browse the repository at this point in the history
GH Actions: automatically use latest `pypa/gh-action-pypi-publish`
  • Loading branch information
wxtim authored Jan 13, 2025
2 parents d6bcb12 + 4890412 commit 8c0bb08
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto_publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
uses: cylc/release-actions/build-python-package@v1

- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@v1.12.2
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__ # uses the API token feature of PyPI - least permissions possible
password: ${{ secrets.PYPI_TOKEN }}
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
workflow_dispatch:
pull_request:
paths:
- '.github/workflows/build.yml'
- 'README.md' # check markdown is valid
- 'MANIFEST.in' # check packaging
- 'pyproject.toml' # check build config
Expand All @@ -24,10 +25,12 @@ jobs:
strategy:
matrix:
os: ['ubuntu-latest']
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
python: ['3.8', '3.9', '3.10', '3.11', '3.x']
include:
- os: 'macos-latest'
- os: ubuntu-22.04
python: '3.7'
- os: 'macos-latest'
python: '3.9'
name: ${{ matrix.os }} py-${{ matrix.python }}
steps:
- name: Checkout
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
coverage: [false]
include:
# Modify existing configurations:
Expand All @@ -29,11 +29,14 @@ jobs:
coverage: false
tz: 'XXX-05:30' # UTC+05:30
# Add new configurations:
- os: ubuntu-22.04
python-version: '3.7'
coverage: false
- os: ubuntu-latest
python-version: '3.12'
python-version: '3.x'
coverage: true
- os: macos-latest
python-version: '3.12'
python-version: '3.9'
coverage: false
name: ${{ matrix.os }} py-${{ matrix.python-version }} ${{ matrix.tz }} ${{ matrix.coverage && '(coverage)' || '' }}
env:
Expand Down

0 comments on commit 8c0bb08

Please sign in to comment.