-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (35 loc) · 930 Bytes
/
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
39
40
41
42
43
44
# Copyright (c) 2024 Graphcore Ltd. All rights reserved.
name: CI
on:
pull_request:
push:
branches: [main]
jobs:
pytest-container:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip"
- name: Install requirements
run: |
pip install -U pip
pip install .[dev]
pip install -r requirements-direct.txt
- name: Log installed environment
run: |
python3 -m pip freeze
- name: Pre-commit all files
run: |
pre-commit run --all-files
- name: Run unit tests
run: |
pytest -vv .
- name: MyPy
run: |
mypy --disallow-untyped-defs --enable-error-code redundant-expr src test
- name: Ensure that docs build
run: |
cd docs && make html