Skip to content

Commit

Permalink
python: Extract check build step (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpkorstanje authored Nov 24, 2024
1 parent 2a62e63 commit e2b14dc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
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/*

0 comments on commit e2b14dc

Please sign in to comment.