-
Notifications
You must be signed in to change notification settings - Fork 8
38 lines (36 loc) · 1 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
name: Run CI checks
on: pull_request
jobs:
run_lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "poetry"
- name: Run lint
run: make lint
run_test:
runs-on: ubuntu-latest
env:
CURL_BINARY_PATH: /home/runner/work/telescope/curl
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "poetry"
- name: Get curl with HTTP2 and HTTP3 support
run: |
wget https://github.com/stunnel/static-curl/releases/download/8.1.1/curl-static-amd64-8.1.1.tar.xz
tar -xvf curl-*.tar.xz
mv curl $CURL_BINARY_PATH
- name: Install dependencies
run: poetry install
- name: Run tests
run: make tests