Skip to content

Commit

Permalink
👷 Add publish to pypi in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoPerrier committed Jan 15, 2024
1 parent 7a9dcd5 commit 4a4c0ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Build & Test
on: [push, pull_request]
on:
push:
pull_request:
workflow_call:

jobs:
lint:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ on:
- "v[0-9]+.[0-9]+.[0-9]+" # regex to match semantic versioning tags

jobs:
tests:
main_ci:
uses: ./.github/workflows/main.yml
publish:
name: publish
needs: [main] # require main to pass before publish runs
needs: [main_ci] # require main to pass before publish runs
runs-on: ubuntu-latest
steps:
- name: Checkout source
Expand Down

0 comments on commit 4a4c0ed

Please sign in to comment.