-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (35 loc) · 1.08 KB
/
icon4py-qa.yml
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
name: ICON4Py Quality Assurance
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
types: [opened, reopened, synchronize]
jobs:
pre-commit-icon4py-model:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install libboost-all-dev
curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: 'pip'
cache-dependency-path: |
**/pyproject.toml
uv.lock
- name: Install venv and icon4py namespace packages
run: |
uv sync --extra all
- name: Run checks
run: |
source .venv/bin/activate
pre-commit run