Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

turn on github actions caching of pip environments #773

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
408e18d
turn on github actions caching of pip environments
clintonsteiner Nov 22, 2024
3223f24
add change entry for pip caching
clintonsteiner Nov 22, 2024
e4dfcea
fix to use uv caching per pr comments
clintonsteiner Nov 25, 2024
61aeb88
add one missed
clintonsteiner Nov 25, 2024
f068a93
Merge branch 'master' into enableCachingOfPythonEnvsAndPipDownloadCaches
clintonsteiner Nov 25, 2024
888627f
fix caching with globbing
clintonsteiner Dec 20, 2024
c4ff68f
Merge branch 'master' into enableCachingOfPythonEnvsAndPipDownloadCaches
clintonsteiner Dec 20, 2024
b41a50b
Update .github/workflows/help-in-readme.yml
clintonsteiner Jan 6, 2025
009fafc
Update .github/workflows/python-package.yml
clintonsteiner Jan 6, 2025
55a7bf4
Update .github/workflows/pyupgrade.yml
clintonsteiner Jan 6, 2025
dd9dcf8
ci: test-future - use uv for cache and pip install as well
clintonsteiner Jan 6, 2025
8aa915f
Update .github/workflows/test-future.yml
clintonsteiner Jan 7, 2025
df98fbf
Merge branch 'master' into enableCachingOfPythonEnvsAndPipDownloadCaches
clintonsteiner Jan 7, 2025
608c6e2
Merge branch 'master' into enableCachingOfPythonEnvsAndPipDownloadCaches
clintonsteiner Jan 7, 2025
17d450f
ci: update test-future with workflow_dipatch
clintonsteiner Jan 7, 2025
6f1fba3
ci: add python install after install of future
clintonsteiner Jan 8, 2025
ec8791d
Merge branch 'master' into enableCachingOfPythonEnvsAndPipDownloadCaches
clintonsteiner Jan 8, 2025
baa360d
remove upgrade-strategy=eager
clintonsteiner Jan 8, 2025
0581d4a
fix checkout of master branch explicitly defined
clintonsteiner Jan 8, 2025
3bca986
Merge branch 'master' into enableCachingOfPythonEnvsAndPipDownloadCaches
clintonsteiner Jan 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/help-in-readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v4
clintonsteiner marked this conversation as resolved.
Show resolved Hide resolved
- name: Verify that README contains output of darker --help
run: uvx --from '.[flynt,isort]' darker --verify-readme
11 changes: 7 additions & 4 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
cache-dependency-glob: |
**/setup.cfg
**/pyproject.toml
- run: |
uv pip install --system -U \
black \
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
cache-dependency-glob: |
**/setup.cfg
**/pyproject.toml
- name: Install dependencies for running Pylint
run: |
uv pip install --system -U \
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@ jobs:
wheel-path: ${{ steps.get-darker-version.outputs.wheel-path }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
clintonsteiner marked this conversation as resolved.
Show resolved Hide resolved
- name: Install uv
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
- uses: actions/setup-python@v5
cache-dependency-glob: |
**/setup.cfg
**/pyproject.toml
- name: Build wheel distribution
run: uv build --wheel
- name: Upload wheel for other jobs
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/pyupgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
- uses: actions/setup-python@v5
clintonsteiner marked this conversation as resolved.
Show resolved Hide resolved
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
cache-dependency-glob: |
**/setup.cfg
**/pyproject.toml
- name: Ensure modern Python style using pyupgrade
# This script is written in a Linux / macos / windows portable way
run: |
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/safety.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install uv
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
- uses: actions/setup-python@v5
cache-dependency-glob: |
**/setup.cfg
**/pyproject.toml
- run: uvx --from pip-tools pip-compile setup.cfg
- name: Check dependencies for known security vulnerabilities using Safety
run: uvx safety check --file requirements.txt
9 changes: 7 additions & 2 deletions .github/workflows/test-bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
- uses: actions/setup-python@v5
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
cache-dependency-glob: |
**/setup.cfg
**/pyproject.toml

- name: Make sure that `darkgray_bump_version` still finds all version strings
and that there's a future milestone on GitHub Issues.
Expand Down
Loading