Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.

Commit 7cd2c05

Browse files
authored
Separate build/publish step for OIDC to work (#19)
1 parent dd9cd38 commit 7cd2c05

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ jobs:
4040
venv-${{ runner.os }}-py${{ matrix.python-version }}-
4141
4242
- name: Install package
43-
run: |
44-
poetry install --all-extras
43+
run: poetry install --all-extras
4544

4645
- name: Validate version
4746
run: |
@@ -59,11 +58,5 @@ jobs:
5958
run: poetry run mypy --no-error-summary dreadnode_cli
6059

6160
- name: Test
62-
run: poetry run pytest --junitxml=pytest.xml dreadnode_cli
61+
run: poetry run pytest dreadnode_cli
6362

64-
- name: Upload test results
65-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882
66-
if: always()
67-
with:
68-
name: test-results-${{ matrix.python-version }}
69-
path: pytest.xml

.github/workflows/publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,12 @@ jobs:
5353
exit 1
5454
fi
5555
56-
- name: Build and publish
56+
- name: Build package
5757
run: |
5858
poetry build
59-
poetry publish
59+
60+
- name: Publish to PyPI
61+
uses: pypa/gh-action-pypi-publish@15c56dba361d8335944d31a2ecd17d700fc7bcbc
6062

6163
publish-docker:
6264
name: Publish Docker

0 commit comments

Comments
 (0)