-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.12 KB
/
Copy pathci.yml
File metadata and controls
46 lines (42 loc) · 1.12 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
name: CI
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
test:
name: Python ${{ matrix.python }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ["3.8", "3.11"]
steps:
- name: Check out source
uses: actions/checkout@v7
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python }}
cache: pip
- name: Install test dependencies
run: python -m pip install --upgrade pip && python -m pip install -e '.[test]'
- name: Test
run: python -m pytest -q
type-check:
name: Type check
runs-on: ubuntu-latest
steps:
- name: Check out source
uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
cache: pip
- name: Install development dependencies
run: python -m pip install --upgrade pip && python -m pip install -e '.[dev]'
- name: Run mypy
run: python -m mypy cloud_runtimes