From abc3d9911d7b06c6c85355666df8216012140dee Mon Sep 17 00:00:00 2001 From: James Gaboardi Date: Thu, 3 Nov 2022 11:31:58 -0400 Subject: [PATCH] update testing.yml --- .github/workflows/{unittests.yml => testing.yml} | 16 ++++++++++++++-- README.md | 2 +- 2 files changed, 15 insertions(+), 3 deletions(-) rename .github/workflows/{unittests.yml => testing.yml} (79%) diff --git a/.github/workflows/unittests.yml b/.github/workflows/testing.yml similarity index 79% rename from .github/workflows/unittests.yml rename to .github/workflows/testing.yml index 95aad80b..6b6592ae 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/testing.yml @@ -1,3 +1,5 @@ + name: Continuous Integration + on: push: branches: @@ -9,12 +11,12 @@ - cron: '59 23 * * *' jobs: - unittests: + tests: name: ${{ matrix.os }}, ${{ matrix.environment-file }} runs-on: ${{ matrix.os }} timeout-minutes: 30 env: - RUN_TEST: pytest spopt --cov spopt -v -n auto --cov-config .coveragerc --cov-report xml --color yes --cov-append --cov-report term-missing + RUN_TEST: pytest spopt -v -r a -n auto --cov spopt --cov-config .coveragerc --cov-report xml --color yes --cov-append --cov-report term-missing strategy: matrix: os: [ubuntu-latest] @@ -46,6 +48,16 @@ run: pip install git+https://github.com/pysal/libpysal.git@master if: matrix.os == 'ubuntu-latest' && contains(matrix.environment-file, 'DEV') + - name: environment info + shell: bash -l {0} + run: | + micromamba info + micromamba list + + - name: spatial versions + shell: bash -l {0} + run: 'python -c "import geopandas; geopandas.show_versions();"' + - name: run tests - bash shell: bash -l {0} run: ${{ env.RUN_TEST }} diff --git a/README.md b/README.md index a5e320aa..c3f61b11 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ #### Regionalization, facility location, and transportation-oriented modeling ![tag](https://img.shields.io/github/v/release/pysal/spopt?include_prereleases&sort=semver) -[![unittests](https://github.com/pysal/spopt/workflows/.github/workflows/unittests.yml/badge.svg)](https://github.com/pysal/spopt/actions?query=workflow%3A.github%2Fworkflows%2Funittests.yml) +[![CI](https://github.com/pysal/spopt/workflows/.github/workflows/testing.yml/badge.svg)](https://github.com/pysal/spopt/actions?query=workflow%3A.github%2Fworkflows%testing.yml) [![codecov](https://codecov.io/gh/pysal/spopt/branch/main/graph/badge.svg)](https://codecov.io/gh/pysal/spopt) [![Documentation](https://img.shields.io/static/v1.svg?label=docs&message=current&color=9cf)](http://pysal.org/spopt/) [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)