Skip to content

Commit fbd4b6c

Browse files
authored
ci: drop redundant Python test workflow dependencies (#340)
- 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
1 parent c4cc286 commit fbd4b6c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/release-pypi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ jobs:
3535
- name: Publish package distributions to PyPI
3636
uses: pypa/gh-action-pypi-publish@release/v1
3737
with:
38-
packages-dir: python/dist
38+
packages-dir: python/dist

.github/workflows/test-python.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@ jobs:
5050
run: python --version
5151
- name: Install Python package dependencies
5252
run: |
53-
python -m pip install twine pip setuptools wheel
54-
pip install -r requirements.txt
55-
pip install -e .
53+
pip install --requirement requirements.txt
54+
pip install --editable .
5655
- name: Run tests
5756
run: pytest
5857
- name: Run Acceptance Tests

python/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ venv/
99
.tox/
1010
.coverage
1111
.coverage.*
12+
*.egg-info/

0 commit comments

Comments
 (0)