Skip to content

Commit

Permalink
Merge pull request #2 from fugue-project/setup2
Browse files Browse the repository at this point in the history
setup2
  • Loading branch information
goodwanghan authored Dec 17, 2020
2 parents 6d5c10b + 9b0a12f commit f7be6ea
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ on:
types: [created]

jobs:
deploy:
install:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
Expand All @@ -19,6 +18,12 @@ jobs:
python-version: 3.7
- name: Install dependencies
run: make dev

coverage:
runs-on: ubuntu-latest
if: "!github.event.release.prerelease"
needs: install
steps:
- name: Test
run: make test
- name: Coveralls
Expand All @@ -27,6 +32,11 @@ jobs:
run: |
pip install coveralls
coveralls
publish:
runs-on: ubuntu-latest
needs: install
steps:
- name: Build and publish
env:
RELEASE_TAG: ${{ github.event.release.tag_name }}
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ def get_version() -> str:
tag = os.environ.get("RELEASE_TAG", "")
if "dev" in tag.split(".")[-1]:
return tag
if tag != "":
assert tag == __version__, "release tag and version mismatch"
return __version__


Expand Down

0 comments on commit f7be6ea

Please sign in to comment.