-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (41 loc) · 954 Bytes
/
ci.yml
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
name: unit-tests
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- main
- development
pull_request:
branches:
- main
- development
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: python-3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: linting checks
run: |
python -m pip install --upgrade pip
pip install flake8 flake8-docstrings isort
sh hooks/pre-commit
- name: install project dependencies
run: |
pip install -e .
- name: unit tests
run: |
pytest --cov=crystal_diffusion
- name: pytorch-end2end
run: |
./tests/end2end_pytorch/run.sh
- name: type checking
run: |
pytype crystal_diffusion/
- name: doc-creation-test
run: |
./tests/test_docs/run.sh