Skip to content

Commit

Permalink
ci: Use 'pipx run' to simplify installs
Browse files Browse the repository at this point in the history
* Use 'pipx run' to avoid having to install tools into the same environment.
  • Loading branch information
matthewfeickert committed Aug 24, 2024
1 parent 3c52773 commit aa1ff19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,10 @@ jobs:
with:
python-version: '3.12'

- name: Install dependencies
run: |
python -m pip install uv
uv pip install --system --upgrade pip wheel
uv pip install --system --quiet '.[lint]'
python -m pip list
- name: Lint with flake8
run: |
python -m flake8 .
pipx run flake8 .
- name: Lint with Black
run: |
black --check --diff --verbose .
pipx run black --check --diff --verbose .
11 changes: 2 additions & 9 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,9 @@ jobs:
with:
python-version: '3.12'

- name: Install python-build, and twine
run: |
python -m pip install uv
uv pip install --system --upgrade pip wheel
uv pip install --system build twine
python -m pip list
- name: Build a sdist and a wheel
run: |
python -m build --installer uv .
pipx run build --installer uv .
- name: Verify history available for dev versions
run: |
Expand All @@ -68,7 +61,7 @@ jobs:
echo "python-build named built distribution: ${wheel_name}"
- name: Verify the distribution
run: twine check --strict dist/*
run: pipx run twine check --strict dist/*

- name: List contents of sdist
run: python -m tarfile --list dist/pylhe-*.tar.gz
Expand Down

0 comments on commit aa1ff19

Please sign in to comment.