-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Updated jobs for release (#23)
* docs: Updated readme * chore: Fixed conda upload job * chore: Updated package version
- Loading branch information
Showing
3 changed files
with
47 additions
and
3 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 |
---|---|---|
|
@@ -45,6 +45,34 @@ jobs: | |
twine check dist/* | ||
twine upload dist/* | ||
pypi-check: | ||
if: "!github.event.release.prerelease" | ||
runs-on: ubuntu-latest | ||
needs: pypi-publish | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
architecture: x64 | ||
- name: Cache python modules | ||
uses: actions/[email protected] | ||
env: | ||
cache-name: cache-pkg-requirements | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-install-${{ env.cache-name }}-${{ hashFiles('requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-install-${{ env.cache-name }}- | ||
${{ runner.os }}-install- | ||
${{ runner.os }}- | ||
- name: Install package | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install torchscan | ||
python -c "import torchscan; print(torchscan.__version__)" | ||
conda-publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -73,6 +101,22 @@ jobs: | |
export BUILD_VERSION=$VERSION | ||
python setup.py sdist | ||
mkdir conda-dist | ||
conda-build ./conda/ -c pytorch --output-folder conda-dist | ||
conda-build .conda/ -c pytorch --output-folder conda-dist | ||
ls -l conda-dist/noarch/*tar.bz2 | ||
anaconda upload conda-dist/noarch/*tar.bz2 -u frgfm | ||
conda-check: | ||
if: "!github.event.release.prerelease" | ||
runs-on: ubuntu-latest | ||
needs: conda-publish | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Miniconda setup | ||
uses: goanpeca/setup-miniconda@v1 | ||
with: | ||
auto-update-conda: true | ||
python-version: 3.7 | ||
- name: Install package | ||
run: | | ||
conda install -c frgfm torchscan | ||
python -c "import torchscan; print(torchscan.__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
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