Skip to content

Commit b66ea7f

Browse files
Merge pull request #2 from RadarML/dev
Set up secrets for accessing RadarML repos in actions
2 parents cfe13cd + 02e0c69 commit b66ea7f

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,27 @@ on:
77
jobs:
88
test:
99
runs-on: ubuntu-latest
10-
strategy:
11-
matrix:
12-
python-version: ["3.10", "3.11", "3.12", "3.13"]
1310

1411
steps:
1512
- name: Checkout code
16-
uses: actions/checkout@v4
13+
uses: actions/checkout@v5
1714

18-
- name: Install the latest version of uv and set the python version
15+
- name: Fetch secrets
16+
uses: webfactory/ssh-agent@v0.9.0
17+
with:
18+
ssh-private-key: |
19+
${{ secrets.XWR_PRIVATE_KEY }}
20+
${{ secrets.RED_ROVER_PRIVATE_KEY }}
21+
22+
- name: Install uv with Python 3.12
1923
uses: astral-sh/setup-uv@v6
2024
with:
21-
python-version: ${{ matrix.python-version }}
22-
uv-version: latest
25+
python-version: "3.12"
26+
uv-version: 0.8.13
2327

2428
- name: Lint with ruff
2529
run: |
26-
uv run --extra dev ruff check
30+
uv run --extra dev ruff check ./src
2731
2832
- name: Type check with pyright
2933
run: |

.github/workflows/docs.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ jobs:
2121
- name: Check out
2222
uses: actions/checkout@v5
2323

24-
# Install uv (fast Python package/dependency manager)
24+
- name: Fetch secrets
25+
uses: webfactory/ssh-agent@v0.9.0
26+
with:
27+
ssh-private-key: |
28+
${{ secrets.XWR_PRIVATE_KEY }}
29+
${{ secrets.RED_ROVER_PRIVATE_KEY }}
30+
2531
- name: Set up uv
2632
uses: astral-sh/setup-uv@v6
2733

0 commit comments

Comments
 (0)