Skip to content

Commit

Permalink
CI: adds pip caching
Browse files Browse the repository at this point in the history
  • Loading branch information
Tpt committed Nov 5, 2023
1 parent 3cb20c4 commit 56171ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: 3.12
cache: pip
- run: pip install --upgrade pre-commit
- run: pre-commit run --all-files

Expand All @@ -25,6 +26,7 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: 3.7
cache: pip
- run: pip install . && pip install -r requirements-dev.txt
- run: python -m unittest
working-directory: ./tests
Expand All @@ -42,6 +44,7 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: 3.12
cache: pip
- run: pip install build
- run: python -m build --sdist --wheel --outdir dist/ .
- uses: pypa/gh-action-pypi-publish@release/v1
Expand Down

0 comments on commit 56171ec

Please sign in to comment.