Skip to content

Commit

Permalink
Update gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiopasra committed Nov 20, 2024
1 parent 3a86c5c commit b61d712
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 31 deletions.
35 changes: 7 additions & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,16 @@ on:
types: [published]

jobs:
build_wheels:
name: Build wheel
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
name: Install Python
with:
python-version: '3.10'

- name: Install wheel
run: |
python -m pip install setuptools wheel numpy
- name: Build wheels
run: |
python -m pip wheel . -w wheelhouse
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/megaradrp-*.whl

build_sdist:
name: Build source distribution
name: Build source distribution and wheel
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.10'
python-version: '3.12'

- name: Install build
run: |
Expand All @@ -46,12 +25,12 @@ jobs:
# This builds both the wheel and sdist
run: python -m build

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

upload_pypi:
needs: [build_wheels, build_sdist]
needs: [build_sdist]
runs-on: ubuntu-latest
environment: release
permissions:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.9", "3.10", "3.11", "3.12"]
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup python for test ${{ matrix.python }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: 'pip'
Expand Down

0 comments on commit b61d712

Please sign in to comment.