From 60b5a53969a13aece62e7eeee1cca6efec89eef2 Mon Sep 17 00:00:00 2001 From: Pete R Jemian Date: Fri, 24 Dec 2021 09:30:57 -0600 Subject: [PATCH 1/2] DOC #175 --- CHANGES.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.rst b/CHANGES.rst index 071c5f6b..219f57e1 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -12,6 +12,7 @@ Production Development *********** +:0.2.7: -tba- -- publish documentation on GitHub Pages :0.2.6: 2021-12-22 -- drop support for python<3.6 :0.2.5: 2020-06-29 -- bug fix and up to date :0.2.0: 2018-07-02 -- first tag after major refactor (#72, #105) From a0ac875a056144b65081c9111971e352c71e6c3c Mon Sep 17 00:00:00 2001 From: Pete R Jemian Date: Fri, 24 Dec 2021 09:32:14 -0600 Subject: [PATCH 2/2] ENH #177 add code coverage --- .github/workflows/unit-tests-pytest.yml | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unit-tests-pytest.yml b/.github/workflows/unit-tests-pytest.yml index bd397891..d2e855f1 100644 --- a/.github/workflows/unit-tests-pytest.yml +++ b/.github/workflows/unit-tests-pytest.yml @@ -41,16 +41,35 @@ jobs: - name: Install Python package & test requirements run: | $CONDA/bin/conda env update --file environment.yml --name $ENV_NAME - $CONDA/bin/conda install pytest yaml pyyaml ruamel_yaml --name $ENV_NAME + $CONDA/bin/conda install coverage coveralls pytest pyyaml ruamel_yaml yaml --name $ENV_NAME $CONDA/bin/conda list -r --name $ENV_NAME env: PY_VER: ${{ matrix.python-version }} ENV_NAME: anaconda-test-env-py-${{ matrix.python-version }} - - name: Run tests with pytest + - name: Run tests with pytest & coverage run: | source $CONDA/bin/activate $ENV_NAME - pytest -vvv . + coverage run --concurrency=thread --parallel-mode -m pytest -vvv . + coverage combine env: PY_VER: ${{ matrix.python-version }} ENV_NAME: anaconda-test-env-py-${{ matrix.python-version }} + + - name: Coverage Report + run: | + source $CONDA/bin/activate $ENV_NAME + coverage report + env: + PY_VER: ${{ matrix.python-version }} + ENV_NAME: anaconda-test-env-py-${{ matrix.python-version }} + + - name: Upload to coveralls + # https://github.com/TheKevJames/coveralls-python + run: | + source $CONDA/bin/activate $ENV_NAME + coveralls --service=github + env: + PY_VER: ${{ matrix.python-version }} + ENV_NAME: anaconda-test-env-py-${{ matrix.python-version }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}