-
Notifications
You must be signed in to change notification settings - Fork 0
146 lines (120 loc) · 5.77 KB
/
Copy pathci.yml
File metadata and controls
146 lines (120 loc) · 5.77 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
name: CI
on: [push, pull_request]
env:
UV_LINK_MODE: copy
UV_NATIVE_TLS: true
UV_NO_SYNC: true
jobs:
debug:
name: Run Debugging
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Check variables
run: |
echo "github.action: ${{ github.action }}"
echo "github.action_path: ${{ github.action_path }}"
echo "github.action_ref: ${{ github.action_ref }}"
echo "github.action_repository: ${{ github.action_repository }}"
echo "github.action_status: ${{ github.action_status }}"
echo "github.actor: ${{ github.actor }}"
echo "github.actor_id: ${{ github.actor_id }}"
echo "github.api_url: ${{ github.api_url }}"
echo "github.base_ref: ${{ github.base_ref }}"
echo "github.env: ${{ github.env }}"
echo "github.event_name: ${{ github.event_name }}"
echo "github.event_path: ${{ github.event_path }}"
echo "github.graphql_url: ${{ github.graphql_url }}"
echo "github.head_ref: ${{ github.head_ref }}"
echo "github.job: ${{ github.job }}"
echo "github.job_workflow_sha: ${{ github.job_workflow_sha }}"
echo "github.path: ${{ github.path }}"
echo "github.ref: ${{ github.ref }}"
echo "github.ref_name: ${{ github.ref_name }}"
echo "github.ref_protected: ${{ github.ref_protected }}"
echo "github.ref_type: ${{ github.ref_type }}"
echo "github.repository: ${{ github.repository }}"
echo "github.repository_id: ${{ github.repository_id }}"
echo "github.repository_owner: ${{ github.repository_owner }}"
echo "github.repository_owner_id: ${{ github.repository_owner_id }}"
echo "github.repositoryUrl: ${{ github.repositoryUrl }}"
echo "github.retention_days: ${{ github.retention_days }}"
echo "github.run_attempt: ${{ github.run_attempt }}"
echo "github.run_id: ${{ github.run_id }}"
echo "github.run_number: ${{ github.run_number }}"
echo "github.secret_source: ${{ github.secret_source }}"
echo "github.server_url: ${{ github.server_url }}"
echo "github.sha: ${{ github.sha }}"
echo "github.token: ${{ github.token }}"
echo "github.triggering_actor: ${{ github.triggering_actor }}"
echo "github.workflow: ${{ github.workflow }}"
echo "github.workflow_ref: ${{ github.workflow_ref }}"
echo "github.workflow_sha: ${{ github.workflow_sha }}"
echo "github.workspace: ${{ github.workspace }}"
echo "github.event.action: ${{ github.event.action }}"
echo "github.event.enterprise: ${{ github.event.enterprise }}"
echo "github.event.organization: ${{ github.event.organization }}"
echo "github.event.repository: ${{ github.event.repository }}"
echo "github.event.sender: ${{ github.event.sender }}"
echo "github.event.release.assets_url: ${{ github.event.release.assets_url }}"
echo "github.event.release.author: ${{ github.event.release.author }}"
echo "github.event.release.body: ${{ github.event.release.body }}"
echo "github.event.release.created_at: ${{ github.event.release.created_at }}"
echo "github.event.release.draft: ${{ github.event.release.draft }}"
echo "github.event.release.html_url: ${{ github.event.release.html_url }}"
echo "github.event.release.id: ${{ github.event.release.id }}"
echo "github.event.release.name: ${{ github.event.release.name }}"
echo "github.event.release.node_id: ${{ github.event.release.node_id }}"
echo "github.event.release.prerelease: ${{ github.event.release.prerelease }}"
echo "github.event.release.published_at: ${{ github.event.release.published_at }}"
echo "github.event.release.tag_name: ${{ github.event.release.tag_name }}"
echo "github.event.release.tarball_url: ${{ github.event.release.tarball_url }}"
echo "github.event.release.target_commitish: ${{ github.event.release.target_commitish }}"
echo "github.event.release.upload_url: ${{ github.event.release.upload_url }}"
echo "github.event.release.url: ${{ github.event.release.url }}"
echo "github.event.release.zipball_url: ${{ github.event.release.zipball_url }}"
- name: Check Git
run: |
git status
git branch
check:
if: github.ref_type == 'branch' && github.event_name == 'push' && github.ref_name != 'main'
name: Run checks
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up uv
uses: astral-sh/setup-uv@v5
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- name: Install dependencies
run: uv sync --no-cache --all-groups
- name: Run checks
run: uv run check
ci:
if: github.event_name == 'pull_request' && github.base_ref == 'main'
name: Run Checks on '${{ matrix.os }}' with '${{ matrix.python-version }}'
runs-on: ubuntu-latest
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
fail-fast: false
max-parallel: 15
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up uv
uses: astral-sh/setup-uv@v5
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --no-cache --all-groups
- name: Run checks
run: uv run check