-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Patrick Nicodemus
committed
Aug 22, 2024
1 parent
466f136
commit 09a4215
Showing
3 changed files
with
50 additions
and
37 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -169,4 +169,5 @@ CAJAL/data | |
|
||
# Data generated by tests | ||
tests/*.csv | ||
ocaml | ||
ocaml | ||
.vscode/settings.json |