[Resolves] Support ingesting a digest model report/cache #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |