Skip to content

Commit

Permalink
Auto publish to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddavo committed Apr 13, 2022
1 parent d859997 commit 0c23c0b
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: dao-analyzer CI
on: [push]

jobs:
build:
testing:
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -31,3 +31,25 @@ jobs:
- name: Test with pytest
run: |
pytest --hypothesis-show-statistics test/unit/
package:
runs-on: ubuntu-latest
needs: [testing]
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Downloading tags
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.10"
- name: Install build deps
run: python -m pip install --upgrade pip build wheel
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 0c23c0b

Please sign in to comment.