From abb8aa3983a71c973afc3586e0cd76e36a534f64 Mon Sep 17 00:00:00 2001 From: Tom Wagg Date: Thu, 28 Sep 2023 18:13:44 -0400 Subject: [PATCH] attempt to unbreak the action --- .github/workflows/python-package.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 65bb0f2..d2f33c9 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -30,19 +30,24 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip + python -m pip install flake8 pytest coverage pytest-xdist nbmake pytest-cov python -m pip install -e .[test] - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + flake8 cogsworth/ --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - name: Test with pytest and generate coverage report + flake8 cogsworth/ --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Grab the data you need to test observables run: | # prep the data needed for tests python cogsworth/tests/prep_data.py + - name: Test package with pytest and generate coverage report + run: | # test with as many cores as possible for speed pytest cogsworth -n=auto --cov=./ --cov-report=xml + - name: Test the tutorial notebooks + run: | # test notebooks in addition to the code pytest -n=auto --nbmake "docs/tutorials" - name: Get Coverage