Skip to content

Commit

Permalink
tox testing cannot be used since the test logic is hardcoded to data …
Browse files Browse the repository at this point in the history
…found in the notebooks
  • Loading branch information
Zeitsperre committed Oct 17, 2023
1 parent b0248e0 commit 05f9816
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 05f9816

Please sign in to comment.