Skip to content

Commit

Permalink
docs: Updated documentation and jobs after release (#12)
Browse files Browse the repository at this point in the history
* chore: Updated package version

* docs: Updated readme

* chore: Fixed conda upload job
  • Loading branch information
frgfm committed Aug 3, 2020
1 parent a95d680 commit 8396551
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 3 deletions.
46 changes: 45 additions & 1 deletion .github/workflows/pkg-upload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/cache@v1.1.2
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 torchcam
python -c "import torchcam; print(torchcam.__version__)"
conda-publish:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -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 torchcam
python -c "import torchcam; print(torchcam.__version__)"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# Torchcam: class activation explorer

[![License](https://img.shields.io/badge/License-MIT-brightgreen.svg)](LICENSE) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/5124b1dff75e4e9cbb68136516605032)](https://www.codacy.com/manual/frgfm/torch-cam?utm_source=github.com&utm_medium=referral&utm_content=frgfm/torch-cam&utm_campaign=Badge_Grade) ![Build Status](https://github.com/frgfm/torch-cam/workflows/python-package/badge.svg) [![codecov](https://codecov.io/gh/frgfm/torch-cam/branch/master/graph/badge.svg)](https://codecov.io/gh/frgfm/torch-cam) [![Docs](https://img.shields.io/badge/docs-available-blue.svg)](https://frgfm.github.io/torch-cam) [![Pypi](https://img.shields.io/badge/pypi-v0.1.0-blue.svg)](https://pypi.org/project/torchcam/)
[![License](https://img.shields.io/badge/License-MIT-brightgreen.svg)](LICENSE) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/5124b1dff75e4e9cbb68136516605032)](https://www.codacy.com/manual/frgfm/torch-cam?utm_source=github.com&utm_medium=referral&utm_content=frgfm/torch-cam&utm_campaign=Badge_Grade) ![Build Status](https://github.com/frgfm/torch-cam/workflows/python-package/badge.svg) [![codecov](https://codecov.io/gh/frgfm/torch-cam/branch/master/graph/badge.svg)](https://codecov.io/gh/frgfm/torch-cam) [![Docs](https://img.shields.io/badge/docs-available-blue.svg)](https://frgfm.github.io/torch-cam) [![Pypi](https://img.shields.io/badge/pypi-v0.1.1-blue.svg)](https://pypi.org/project/torchcam/)

Simple way to leverage the class-specific activation of convolutional layers in PyTorch.

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from setuptools import find_packages, setup

version = '0.1.1a0'
version = '0.1.2a0'
sha = 'Unknown'
package_name = 'torchcam'

Expand Down

0 comments on commit 8396551

Please sign in to comment.