-
Notifications
You must be signed in to change notification settings - Fork 32
39 lines (38 loc) · 1012 Bytes
/
Copy pathci.yml
File metadata and controls
39 lines (38 loc) · 1012 Bytes
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
name: ci
on:
push:
branches: [main]
pull_request:
jobs:
compile:
runs-on: ubuntu-24.04
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Bootstrap poetry
run: |
curl -sSL https://install.python-poetry.org | python - -y --version 1.8.3
- name: Install dependencies
run: poetry install
- name: Compile
run: poetry run mypy . --exclude examples
test:
runs-on: ubuntu-24.04
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Bootstrap poetry
run: |
curl -sSL https://install.python-poetry.org | python - -y --version 1.8.3
- name: Install dependencies
run: poetry install
- name: Test
run: poetry run pytest .