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: Extract check build step #318

Merged
merged 4 commits into from
Nov 24, 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
3 changes: 2 additions & 1 deletion .github/workflows/release-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ jobs:
- name: Show Python version
run: python --version

- name: Install Python package dependencies
- name: Build package
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
with:
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ jobs:
- '3.11'
- '3.10'
- '3.9'

defaults:
run:
working-directory: python
steps:
- uses: actions/checkout@v4
- name: Set up Python
Expand All @@ -48,14 +50,15 @@ jobs:
run: python --version
- name: Install Python package dependencies
run: |
python -m pip install build twine pip setuptools wheel
python -m pip install twine pip setuptools wheel
pip install -r requirements.txt
pip install -e .
python -m build
twine check --strict dist/*
- name: Run tests
run: pytest

- name: run acceptance tests
- name: Run Acceptance Tests
run: make acceptance
working-directory: python
- name: Build package
run: |
python -m pip install build twine
python -m build
twine check --strict dist/*
Loading