-
Notifications
You must be signed in to change notification settings - Fork 74
48 lines (45 loc) · 1.19 KB
/
tests.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
47
48
name: "Running tests: style, pytests and entry-points"
env:
GT4SD_CI: true
on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
push:
branches:
- "**"
- "!gh-pages"
jobs:
tests:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v2
- name: Install gt4sd from source
run: |
pip install -r dev_requirements.txt
pip install -r requirements.txt
pip install .
- name: Check black
run: |
python -m black src/gt4sd --check --diff --color
# - name: Check isort
# run: |
# conda activate gt4sd
# python -m isort src/gt4sd --check-only
- name: Check flake8
run: |
python -m flake8 --disable-noqa --per-file-ignores="__init__.py:F401" src/gt4sd
- name: Check mypy
run: |
python -m mypy src/gt4sd
- name: Run pytests
run: |
python -m pytest -sv
- name: Test entry-points
run: |
gt4sd-trainer --help
gt4sd-inference --help
gt4sd-saving --help
gt4sd-upload --help
gt4sd-hf-to-st --help