Skip to content

Commit

Permalink
Add test, pre-release, release jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
carlthome authored Oct 22, 2023
1 parent ddf27b9 commit 99c94ee
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
branches:
- main

env:
PACKAGE: audioscrape

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand All @@ -21,17 +24,23 @@ permissions:

jobs:
test:
if: ${{ github.event_name == 'pull_request' }}
uses: carlthome/workflows/.github/workflows/python.yaml@main
with:
package-name: ${{ env.PACKAGE }}

pre-release:
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/heads/main') }}
uses: carlthome/workflows/.github/workflows/python.yaml@main
with:
package-name: audioscrape
package-name: ${{ env.PACKAGE }}
package-index-name: TestPyPI
package-index-url: https://test.pypi.org/legacy

release:
if: ${{ github.event_name == 'release' && github.event.action == 'published' }}
uses: carlthome/workflows/.github/workflows/python.yaml@main
with:
package-name: audioscrape
package-name: ${{ env.PACKAGE }}
package-index-name: PyPI
package-index-url: https://pypi.org

0 comments on commit 99c94ee

Please sign in to comment.