Skip to content

Commit

Permalink
ci: drop redundant Python test workflow dependencies (#340)
Browse files Browse the repository at this point in the history
- Drop pip, setuptools, twine, wheel installations before 'Run tests' step in test workflow
- Ignore *.egg-info/ build artefact in .gitignore
- Use long option names in workflows such as --requirement and --editable
  • Loading branch information
kieran-ryan authored Dec 31, 2024
1 parent c4cc286 commit fbd4b6c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ jobs:
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: python/dist
packages-dir: python/dist
5 changes: 2 additions & 3 deletions .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ jobs:
run: python --version
- name: Install Python package dependencies
run: |
python -m pip install twine pip setuptools wheel
pip install -r requirements.txt
pip install -e .
pip install --requirement requirements.txt
pip install --editable .
- name: Run tests
run: pytest
- name: Run Acceptance Tests
Expand Down
1 change: 1 addition & 0 deletions python/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ venv/
.tox/
.coverage
.coverage.*
*.egg-info/

0 comments on commit fbd4b6c

Please sign in to comment.