Skip to content

Commit d9bbafb

Browse files
Update CI for uv
1 parent ad2632a commit d9bbafb

1 file changed

Lines changed: 16 additions & 8 deletions

File tree

.github/workflows/action.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,20 @@ jobs:
88
runs-on: ubuntu-24.04
99
steps:
1010
- uses: actions/checkout@v4
11+
1112
- uses: actions/setup-node@v4
1213
with:
1314
node-version: "22"
14-
- uses: actions/setup-python@v5
15-
with:
16-
python-version: "3.13"
1715
- run: npm i -g prettier
16+
17+
- name: Install uv
18+
uses: astral-sh/setup-uv@v7
19+
- run: uv python install
20+
- run: uv sync
21+
- run: source .venv/bin/activate
22+
1823
- run: prettier --check .
19-
- run: pip install -r requirements.txt
24+
2025
- name: validate config file
2126
run: octodns-validate --config-file production.yaml
2227
env:
@@ -27,10 +32,13 @@ jobs:
2732
runs-on: ubuntu-24.04
2833
steps:
2934
- uses: actions/checkout@v4
30-
- uses: actions/setup-python@v5
31-
with:
32-
python-version: "3.13"
33-
- run: pip install -r requirements.txt
35+
36+
- name: Install uv
37+
uses: astral-sh/setup-uv@v7
38+
- run: uv python install
39+
- run: uv sync
40+
- run: source .venv/bin/activate
41+
3442
- name: sync dns
3543
run: octodns-sync --config-file production.yaml --doit
3644
env:

0 commit comments

Comments
 (0)