Skip to content

Commit 3fc54ec

Browse files
committed
feat: add package test ci before release
1 parent 77cb94e commit 3fc54ec

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/release.yml

+19
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,27 @@ on:
77
- prereleased
88

99
jobs:
10+
test-package:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
id-token: write
14+
contents: read
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: setup python
18+
uses: actions/setup-python@v3
19+
with:
20+
python-version: 3.11
21+
- name: Install SDK
22+
run: |
23+
pip install -e .
24+
- name: Run basic import
25+
run: |
26+
python -c "import crowdsec_service_api"
27+
1028
publish-on-pypi:
1129
name: Publish to PyPI
30+
needs: test-package
1231
runs-on: ubuntu-latest
1332
environment:
1433
name: pypi

0 commit comments

Comments
 (0)