Skip to content

Commit

Permalink
Try to build manually in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiopasra committed Feb 23, 2024
1 parent 8b6575b commit bc290d3
Showing 1 changed file with 5 additions and 26 deletions.
31 changes: 5 additions & 26 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

- uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: '3.10'

- name: Install build
run: python -m pip install build
Expand All @@ -22,45 +22,24 @@ jobs:
- uses: actions/upload-artifact@v3
with:
name: numina-wheels
path: ./dist/*.tar.gz
path: ./dist/numina*.tar.gz

build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macOS-11]
os: [ubuntu-latest, macos-latest, macos-14]
steps:
- uses: actions/checkout@v4

- name: Build wheels
uses: pypa/[email protected].2
uses: pypa/[email protected].5
env:
CIBW_BUILD: cp39-* cp310-* cp311-* cp312-*
CIBW_SKIP: '*_i686'

- uses: actions/upload-artifact@v3
with:
name: numina-wheels
path: ./wheelhouse/*.whl

upload_pypi:
name: Upload to Test PyPI
needs: [build_sdist, build_wheels]
runs-on: ubuntu-latest
environment: test-release
permissions:
id-token: write
# upload to PyPI on every tag starting with 'v'
#if: github.event_name == 'push' && startsWith(github.event.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@v3
with:
name: numina-wheels
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
with:
repository_url: https://test.pypi.org/legacy/
path: ./wheelhouse/numina*.whl

0 comments on commit bc290d3

Please sign in to comment.