-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (48 loc) · 1.51 KB
/
test_digest.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
49
50
51
52
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Lint and test Digest
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
permissions:
contents: read
jobs:
make-digest:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.9", "3.10"]
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v3
- name: Set up Miniconda with 64-bit Python
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
activate-environment: digestai
python-version: ${{ matrix.python-version }}
- name: Install Software Dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install pylint pytest
python -m pip check
- name: Lint with PyLint
run: |
pylint src/utils
pylint src/digest --disable E0401 --max-line-length=120
pylint examples
pylint test --disable E0401
- name: Test summary reports
run: |
pytest test/test_reports.py
# Please see contributing notes in the README
# to understand why this is commented and how to run it.
# - name: Test GUI
# run: |
# pytest test/test_gui.py