forked from AliciaCurth/CATENets
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* bump version * Bump version: 0.1.6 * Workflows update: Scheduled runs, updated python versions (#2) * update Py versions * py3.10 fix * update deps * drop 3.10 * updare reqs * debug jaxlib * debug jaxlib * windows debug * debug windows * debug windows * optional JAX, Torch * debug windows * debug windows * bump version * Update .pre-commit-config.yaml * Update .pre-commit-config.yaml * update workflows (#3) * update workflows * debug release * cleanup * Bugfixing (#4) * fix PyTorch API * GPU fixes enable more tests * bugfixing * train/eval review * update JAX (#5)
- Loading branch information
Showing
31 changed files
with
488 additions
and
401 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,73 @@ | ||
name: Package release | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
|
||
jobs: | ||
deploy_osx: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10"] | ||
os: [macos-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: ${GITHUB_WORKSPACE}/.github/workflows/scripts/release_osx.sh | ||
|
||
deploy_linux: | ||
strategy: | ||
matrix: | ||
python-version: | ||
- cp37-cp37m | ||
- cp38-cp38 | ||
- cp39-cp39 | ||
- cp10-cp10 | ||
|
||
runs-on: ubuntu-latest | ||
container: quay.io/pypa/manylinux2014_x86_64 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
with: | ||
submodules: true | ||
- name: Set target Python version PATH | ||
run: | | ||
echo "/opt/python/${{ matrix.python-version }}/bin" >> $GITHUB_PATH | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: ${GITHUB_WORKSPACE}/.github/workflows/scripts/release_linux.sh | ||
|
||
deploy_windows: | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
../../.github/workflows/scripts/release_windows.bat |
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,16 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
yum makecache -y | ||
yum install centos-release-scl -y | ||
yum-config-manager --enable rhel-server-rhscl-7-rpms | ||
yum install llvm-toolset-7.0 python3 python3-devel -y | ||
|
||
# Python | ||
python3 -m pip install --upgrade pip | ||
python3 -m pip install setuptools wheel twine auditwheel | ||
|
||
# Publish | ||
python3 -m pip wheel . -w dist/ --no-deps | ||
twine upload --verbose --skip-existing dist/* |
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,9 @@ | ||
#!/bin/sh | ||
|
||
export MACOSX_DEPLOYMENT_TARGET=10.14 | ||
|
||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine auditwheel | ||
|
||
python3 setup.py build bdist_wheel --plat-name macosx_10_14_x86_64 --dist-dir wheel | ||
twine upload --skip-existing wheel/* |
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,7 @@ | ||
echo on | ||
|
||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine auditwheel | ||
|
||
pip wheel . -w wheel/ --no-deps | ||
twine upload --skip-existing wheel/* |
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
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
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
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
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
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
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
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
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
Oops, something went wrong.