-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
trying a new python version aware packaging
- Loading branch information
1 parent
6234168
commit 7b8d8c5
Showing
2 changed files
with
818 additions
and
907 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 |
---|---|---|
@@ -1,31 +1,37 @@ | ||
|
||
name: Poetry publish | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
branches: ["master"] | ||
pull_request: | ||
branches: [ "master" ] | ||
branches: ["master"] | ||
|
||
jobs: | ||
buildPush: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- python-version: '3.11' | ||
extras: 'torch' | ||
- python-version: '3.10' | ||
extras: 'pax' | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10' | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install Poetry | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install poetry | ||
# use the hardcoded version number for now. if this is merged to the main repo, you can uncomment these lines to automatically tag the version number with the github run number | ||
# e.g. poetry version 0.1.${{ github.run_number }} | ||
- name: Set Version number | ||
run: | | ||
poetry version 1.2.0 | ||
poetry version 1.2.1 # Or use dynamic versioning if needed | ||
- name: Build and Publish to PyPI | ||
run: | | ||
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} | ||
poetry publish --build | ||
poetry build --extras ${{ matrix.extras }} | ||
poetry publish --build |
Oops, something went wrong.