Skip to content

Commit

Permalink
feat: add package test ci before release
Browse files Browse the repository at this point in the history
  • Loading branch information
he2ss committed Sep 23, 2024
1 parent 77cb94e commit 3fc54ec
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,27 @@ on:
- prereleased

jobs:
test-package:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v3
with:
python-version: 3.11
- name: Install SDK
run: |
pip install -e .
- name: Run basic import
run: |
python -c "import crowdsec_service_api"
publish-on-pypi:
name: Publish to PyPI
needs: test-package
runs-on: ubuntu-latest
environment:
name: pypi
Expand Down

0 comments on commit 3fc54ec

Please sign in to comment.