Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit

Permalink
Uncomment publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cvauclair committed Apr 19, 2022
1 parent c2123da commit 70cafe4
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 36 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.10.1
python-version: 3.10.4

- name: Install pipenv
run: python -m pip install --upgrade pipenv wheel
Expand All @@ -29,7 +29,7 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-pipenv-3.10.1-${{ hashFiles('**/Pipfile.lock') }}
key: ${{ runner.os }}-pipenv-3.10.4-${{ hashFiles('**/Pipfile.lock') }}

- name: Install dependencies
if: steps.cache-pipenv.outputs.cache-hit != 'true'
Expand Down
68 changes: 34 additions & 34 deletions .github/workflows/publish_pypi_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ jobs:
- name: Run unit tests
run: pipenv run nose2

# - name: Run examples smoke tests
# shell: bash
# run: sh tests/test_examples.sh
- name: Run examples smoke tests
shell: bash
run: sh tests/test_examples.sh

- name: Lint with flake8
run: |
Expand All @@ -47,34 +47,34 @@ jobs:
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
pipenv run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --indent-size=2 --statistics
# publish-pypi:
# needs: test
# runs-on: ubuntu-latest

# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-python@v2
# with:
# python-version: 3.10.1

# - name: Install pipenv
# run: python -m pip install --upgrade pipenv wheel

# - id: cache-pipenv
# uses: actions/cache@v1
# with:
# path: ~/.local/share/virtualenvs
# key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}

# - name: Install dependencies
# if: steps.cache-pipenv.outputs.cache-hit != 'true'
# run: pipenv install --deploy --dev

# - name: Build package
# run: pipenv run python -m build --sdist --wheel --outdir dist/

# - name: Publish distribution 📦 to Test PyPI
# uses: pypa/gh-action-pypi-publish@master
# with:
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# repository_url: https://test.pypi.org/legacy/
publish-pypi:
needs: test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.10.1

- name: Install pipenv
run: python -m pip install --upgrade pipenv wheel

- id: cache-pipenv
uses: actions/cache@v1
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}

- name: Install dependencies
if: steps.cache-pipenv.outputs.cache-hit != 'true'
run: pipenv install --deploy --dev

- name: Build package
run: pipenv run python -m build --sdist --wheel --outdir dist/

- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/

0 comments on commit 70cafe4

Please sign in to comment.