Skip to content

Commit

Permalink
Revert to setup-python in CI
Browse files Browse the repository at this point in the history
This is faster than the UV install.
  • Loading branch information
sirosen committed Oct 31, 2024
1 parent b8b2269 commit 1dffd68
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,19 @@ jobs:
steps:
- uses: actions/checkout@v4

# get the week of the year (1-52) for nice cache control
- uses: actions/setup-python@v5
id: setup-python
with:
python-version: |
3.8
3.9
3.10
3.11
3.12
3.13
# get the week of the year (1-52) for cache control
# this ensures that at least weekly we'll test with a clear cache
- name: set .weeknum.txt
run: /bin/date -u "+%U" > .weeknum.txt
shell: bash
Expand All @@ -24,9 +36,6 @@ jobs:
enable-cache: true
cache-dependency-glob: ".weeknum.txt"

- name: install pythons
run: uv python install 3.8 3.9 3.10 3.11 3.12 3.13

- run: uv tool install tox --with tox-uv

- name: test
Expand All @@ -46,7 +55,13 @@ jobs:
steps:
- uses: actions/checkout@v4

# get the week of the year (1-52) for nice cache control
- uses: actions/setup-python@v5
id: setup-python
with:
python-version: "${{ join( matrix.pythons, '\n') }}"

# get the week of the year (1-52) for cache control
# this ensures that at least weekly we'll test with a clear cache
- name: set .weeknum.txt
run: /bin/date -u "+%U" > .weeknum.txt
shell: bash
Expand All @@ -56,9 +71,6 @@ jobs:
enable-cache: true
cache-dependency-glob: ".weeknum.txt"

- name: install pythons
run: uv python install ${{ join( matrix.pythons, ' ') }}

- run: uv tool install tox --with tox-uv

- run: tox run -m "${{ matrix.tox_label }}"

0 comments on commit 1dffd68

Please sign in to comment.