-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (47 loc) · 1.23 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: setup ssh
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.YAAK_IDL_REPO_SSH_KEY }}
- name: checkout
uses: actions/checkout@v4
with:
submodules: recursive
persist-credentials: false
- name: setup python
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- name: setup just
uses: extractions/setup-just@v2
- name: setup ytt
uses: carvel-dev/setup-action@v2
with:
only: ytt
- name: setup uv
uses: astral-sh/setup-uv@v3
with:
version: "latest"
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"
- name: sync
run: just sync
- name: install tools
run: just install-tools
- name: restore pre-commit cache
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
- name: pre-commit
run: just pre-commit