pypi-test #61
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will install Python dependencies using Mamba, run tests and lint with a single version of Python | |
name: pypi-test | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 3 * * 1" #run every Tuesday night at 2AM UTC | |
permissions: | |
contents: read | |
jobs: | |
mamba-test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
#python-version: ["3.10"] | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: mamba-org/setup-micromamba@v1 | |
with: | |
environment-name: ecmean | |
cache-downloads: true | |
cache-environment: true | |
create-args: >- | |
python=${{ matrix.python-version }} | |
xesmf | |
esmpy | |
eccodes | |
pytest | |
- name: Install ECmean4 | |
run: | | |
# install package | |
python -m pip install ECmean4 | |
- name: Test with pytest | |
run: | | |
python -m pytest |