Skip to content

Commit e84242e

Browse files
Update build.yml
1 parent ed279aa commit e84242e

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,24 @@ on: push
44
jobs:
55
build:
66
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
python-version: ["3.9"]
710
steps:
811
- uses: actions/checkout@v4
912
- name: Install Python
1013
uses: actions/setup-python@v4
1114
- name: Install the latest version of rye
1215
uses: eifinger/setup-rye@v2
13-
- name: config
16+
with:
17+
enable-cache: true
18+
cache-prefix: ${{ matrix.python-version }}
19+
- name: Pin python-version ${{ matrix.python-version }}
20+
if: steps.setup-rye.outputs.cache-hit != 'true'
21+
run: rye pin ${{ matrix.python-version }}
22+
- name: Install dependencies
23+
if: steps.setup-rye.outputs.cache-hit != 'true'
1424
run: |
15-
rye config --set-bool behavior.use-uv=true
16-
rye symc --no-lock
25+
rye sync --no-lock
1726
# - name: Build with Rye
1827
# run: rye build

0 commit comments

Comments
 (0)