-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (34 loc) · 977 Bytes
/
test.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
name: Test
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize]
jobs:
test:
runs-on: galileo
strategy:
matrix:
python-version: ["3.9", "3.10"]
steps:
- name: checkout
uses: actions/checkout@v4
- name: install poetry
run: pipx install poetry=="1.7.0"
- name: set up python
uses: actions/setup-python@v5
with:
cache: "poetry"
python-version: ${{ matrix.python-version }}
cache-dependency-path: "pyproject.toml"
- name: install invoke
run: pipx install invoke
- name: install dependencies
run: invoke install
# We run the `mypy` check here since it requires all of the packages to be installed.
# Doing that in the pre-commit step would be duplicative and spend more time in CI.
- name: validate mypy
run: invoke type-check
- name: run tests
run: invoke test