Skip to content

Commit 5eacca8

Browse files
adding deploy instructions
1 parent eca2c68 commit 5eacca8

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

.github/workflows/test_and_deploy.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,30 @@ jobs:
6464
PLATFORM: ${{ matrix.platform }}
6565

6666
- name: Coverage
67-
uses: codecov/codecov-action@v1
67+
uses: codecov/codecov-action@v1
68+
69+
deploy:
70+
# this will run when you have tagged a commit, starting with "v*"
71+
# and requires that you have put your twine API key in your
72+
# github secrets (see readme for details)
73+
needs: [test]
74+
runs-on: ubuntu-latest
75+
if: contains(github.ref, 'tags')
76+
steps:
77+
- uses: actions/checkout@v2
78+
- name: Set up Python
79+
uses: actions/setup-python@v2
80+
with:
81+
python-version: "3.x"
82+
- name: Install dependencies
83+
run: |
84+
python -m pip install --upgrade pip
85+
pip install -U setuptools setuptools_scm wheel twine
86+
- name: Build and publish
87+
env:
88+
TWINE_USERNAME: __token__
89+
TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }}
90+
run: |
91+
git tag
92+
python setup.py sdist bdist_wheel
93+
twine upload dist/*

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dependencies:
1010
- numpy
1111
- numba
1212
- matplotlib
13-
- scipy
13+
- scipy<1.6.3
1414
- scikit-learn
1515
- pytorch>=1.7.1
1616
- h5py=2.10.0

0 commit comments

Comments
 (0)