Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 7 additions & 11 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: tarball
path: dist/*.tar.gz

build_wheels:
Expand All @@ -41,15 +42,13 @@ jobs:
fetch-depth: 0

- name: Build wheels
uses: pypa/cibuildwheel@v2.16
uses: pypa/cibuildwheel@v2.23

- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}
path: wheelhouse/*.whl
# Temporary allow overwrite until we use setuptools_scm to
# generate unique version numbers on every push
overwrite: true

upload_pypi:
name: Upload release to PyPI
Expand All @@ -61,20 +60,17 @@ jobs:
# For testing, use TestPyPI
# url: https://test.pypi.org/p/python-casacore
permissions:
id-token: write
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
# Upload to PyPI on every tag starting with 'v'
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
# Alternatively, to publish when a GitHub Release is created, use the following rule:
# if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v4
with:
# unpacks default artifact into dist/
# if `name: artifact` is omitted, the action will create extra parent dir
name: artifact
path: dist

- uses: pypa/gh-action-pypi-publish@v1.8.11
path: dist # put artifacts where next action expects them to be
merge-multiple: true
- uses: pypa/gh-action-pypi-publish@release/v1
with:
# For testing, use TestPyPI
# repository-url: https://test.pypi.org/legacy/
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Linux
on:
push:
branches: [ master ]
tags: [ "*" ]
pull_request:
branches: [ master ]

Expand All @@ -11,7 +12,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
os: [ubuntu-22.04, ubuntu-24.04]
dist:
- py3_casacore_master
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
osx:
runs-on: macos-11
runs-on: macos-13
continue-on-error: true

steps:
Expand Down
Loading