File tree Expand file tree Collapse file tree 3 files changed +60
-44
lines changed Expand file tree Collapse file tree 3 files changed +60
-44
lines changed Original file line number Diff line number Diff line change 1+ name : Upload Python Package
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ deploy :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v2
12+ - name : Set up Python
13+ uses : actions/setup-python@v2
14+ with :
15+ python-version : ' 3.6'
16+ - name : Install dependencies
17+ run : |
18+ python -m pip install --upgrade pip
19+ pip install setuptools wheel twine mock
20+ - name : Build and publish
21+ env :
22+ TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
23+ TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
24+ run : |
25+ python setup.py sdist bdist_wheel
26+ twine upload dist/*
Original file line number Diff line number Diff line change 1+
2+ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
3+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
4+
5+ name : CI
6+
7+ on :
8+ push :
9+ branches : [ master ]
10+ pull_request :
11+ branches : [ master ]
12+
13+ jobs :
14+ test :
15+
16+ runs-on : ubuntu-18.04
17+
18+ steps :
19+ - uses : actions/checkout@v2
20+
21+ - name : Set up Python ${{ matrix.python-version }}
22+ uses : actions/setup-python@v2
23+ with :
24+ python-version : 3.6
25+
26+ - name : Install dependencies
27+ run : |
28+ python -m pip install --upgrade pip
29+ python -m pip install codecov pytest mock
30+ pip install torch==1.7.1+cpu torchvision==0.8.2+cpu torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html
31+ pip install .
32+ - name : Test
33+ run : |
34+ python -m pytest -s tests
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments