From 05f9816ef391e1eb8a7f23c81df0f3f174dd238f Mon Sep 17 00:00:00 2001 From: Zeitsperre <10819524+Zeitsperre@users.noreply.github.com> Date: Tue, 17 Oct 2023 16:31:38 -0400 Subject: [PATCH] tox testing cannot be used since the test logic is hardcoded to data found in the notebooks --- .github/workflows/main.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 67a93f22..18cafb20 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -64,28 +64,31 @@ jobs: with: path: $HOME/.esmf-cache key: ubuntu-latest-esmf_${{ env.ESMF_VERSION }} + - name: Set up Python${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} - name: Install ESMF uses: esmf-org/install-esmf-action@v1 env: ESMF_NETCDF: nc-config with: cache: true + esmpy: true version: ${{ env.ESMF_VERSION }} - - name: Set up Python${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - name: Generate translations + - name: Compile language catalogs run: | make translate - - name: Install tox + - name: Install xscen run: | - pip install tox - - name: Test with tox + pip install --editable . + - name: Test with pytest run: | - tox -e ${{ matrix.tox-env }} + pytest --cov xscen + - name: Report coverage + run: | + coveralls env: - ESMF_VERSION: ${{ env.ESMF_VERSION }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} COVERALLS_FLAG_NAME: run-Python${{ matrix.python-version }} COVERALLS_PARALLEL: true