-
Notifications
You must be signed in to change notification settings - Fork 32
46 lines (46 loc) · 1.1 KB
/
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
45
46
---
name: test
on:
pull_request:
branches: master
jobs:
tests:
runs-on: ubuntu-latest
container: python:3.10
steps:
- uses: actions/checkout@v3
- name: Install package.
run: pip install -e .
- name: Install test dependencies.
run: pip install pytest
- name: Run the tests
run: pytest
build:
runs-on: ubuntu-latest
container: python:3.10
steps:
- uses: actions/checkout@v3
- name: Install package.
run: pip install .
- name: Build the test site.
run: aip-site-gen tests/test_data/ /out/
lint:
runs-on: ubuntu-latest
container: python:3.10
steps:
- uses: actions/checkout@v3
- name: Install the linter (flake8).
run: pip install flake8
- name: Run the linter.
run: flake8 aip_site/ tests/
mypy:
runs-on: ubuntu-latest
container: python:3.10
steps:
- uses: actions/checkout@v3
- name: Install package.
run: pip install .
- name: Install mypy.
run: pip install mypy
- name: Run mypy.
run: mypy aip_site