Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python: Replace publish action #317

Merged
merged 1 commit into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/release-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
- name: Show Python version
run: python --version

- uses: cucumber/action-publish-pypi@v3.0.0
with:
working-directory: "python"
- name: Install Python package dependencies
run: |
python -m pip install build twine
python -m build
twine check --strict dist/*
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
6 changes: 4 additions & 2 deletions .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ jobs:
run: python --version
- name: Install Python package dependencies
run: |
python -m pip install -U pip setuptools wheel
pip install -U -r requirements.txt
python -m pip install build twine pip setuptools wheel
pip install -r requirements.txt
pip install -e .
python -m build
twine check --strict dist/*
- name: Run tests
run: pytest

Expand Down
Loading