Skip to content

Commit

Permalink
Testing CI actions change.
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Nicodemus committed Aug 22, 2024
1 parent 466f136 commit 09a4215
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 37 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/publish.yml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,23 @@ jobs:
name: cibw-wheels-${{ matrix.platform }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl

make_sdist:
name: Make SDist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Optional, use if you use setuptools_scm
submodules: true # Optional, use if you have submodules

- name: Build SDist
run: pipx run build --sdist

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

test:
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -71,3 +88,34 @@ jobs:
pytest --cov src/ tests/
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3

release:
needs: build_wheels
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Upload Release Asset
uses: softprops/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
./wheelhouse/*.whl
dist/*.tar.gz

# upload_all:
# needs: [build_wheels, make_sdist]
# environment: pypi
# permissions:
# id-token: write
# runs-on: ubuntu-latest
# if: github.event_name == 'release' && github.event.action == 'published'
# steps:
# - uses: actions/download-artifact@v4
# with:
# pattern: cibw-*
# path: dist
# merge-multiple: true

# - uses: pypa/gh-action-pypi-publish@release/v1
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,5 @@ CAJAL/data

# Data generated by tests
tests/*.csv
ocaml
ocaml
.vscode/settings.json

0 comments on commit 09a4215

Please sign in to comment.