-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Different steps on PR and pushing to tags
- Loading branch information
Showing
2 changed files
with
35 additions
and
25 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Neurodamus Build / test wheels | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
build-wheel: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
python_version: [3.11] | ||
steps: | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python_version }} | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 500 | ||
fetch-tags: true | ||
- name: Build Wheel | ||
run: | | ||
cd $GITHUB_WORKSPACE | ||
python${{ matrix.python_version }} -m pip install --upgrade build | ||
# build wheel | ||
python${{ matrix.python_version }} -m build . | ||
- name: Test Wheel | ||
run: | | ||
cd $GITHUB_WORKSPACE | ||
pip3 install tox | ||
DIST_FILE=`ls dist/*whl` && tox --installpkg=$DIST_FILE -e ${{ matrix.python_version }} |
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