-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (42 loc) · 1.17 KB
/
pr.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
on:
pull_request:
paths-ignore:
- "docs/**"
- "**.md"
- "examples/**"
- "mkdocs.yml"
branches:
- "main"
workflow_dispatch:
workflow_call:
jobs:
PRCheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
# Download the binary
curl -sLO https://github.com/argoproj/argo-workflows/releases/download/v3.5.4/argo-linux-amd64.gz
# Unzip
gunzip argo-linux-amd64.gz
# Make binary executable
chmod +x argo-linux-amd64
# Move binary to path
mv ./argo-linux-amd64 /usr/local/bin/argo
# Test installation
argo version
- name: Install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: "Set up Python"
run: uv python install
- name: Install the project
run: uv sync --all-extras --dev
- name: Run lint
# For example, using `flake8`
run: uvx ruff format
- name: Run tests
run: |
export PYTHONDONTWRITEBYTECODE=1
uv run pytest -m "not container"
- name: mypy
run: uv run mypy runnable extensions