Skip to content

Commit

Permalink
fix package ci (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
kemingy authored Sep 28, 2021
1 parent 255e5d7 commit d590527
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ on:
- master
- main
- dev
paths:
- '.github/workflows/check.yml'
- 'mosec/**'
- 'src/**'
- 'tests/**'
- 'examples/**'
- 'setup.py'

jobs:
lint:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
publish:
name: "Publish PyPI Package"
runs-on: ubuntu-latest
needs: [build]
needs: [lint,test,build]
steps:
- uses: actions/download-artifact@v2
with:
Expand All @@ -86,6 +86,7 @@ jobs:
pip install setuptools wheel twine
ls
twine upload *
- uses: actions/checkout@v2
- name: Publish Crates
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
Expand Down

0 comments on commit d590527

Please sign in to comment.