Skip to content

Update pixi lockfile (#4523) #3141

Update pixi lockfile (#4523)

Update pixi lockfile (#4523) #3141

Workflow file for this run

---
name: Test
permissions: {}
# runs on a push on main and at the end of every day
on:
workflow_dispatch:
push:
branches:
- main
- update-pixi
schedule:
- cron: "0 0 * * *"
# Required shell entrypoint to have properly configured bash shell
defaults:
run:
shell: pixi run bash -e {0}
jobs:
test:
runs-on: ${{ matrix.os }}
if: github.repository == 'ESMValGroup/ESMValTool' # avoid GAs in forks
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
environment:
- test-py312
- test-py313
- test-py314
- esmvaltool-base-dev
name: ${{ matrix.os }} ${{ matrix.environment }}
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: 0
persist-credentials: false
- uses: prefix-dev/setup-pixi@a09b6247153796b190642a2b53fac4241043cf6f # v0.10.0
with:
frozen: true
environments: ${{ matrix.environment }}
- name: Check dependencies are compatible
run: pip check
- name: Check code quality
run: pre-commit run -a
- name: Run tests
if: matrix.environment != 'esmvaltool-base-dev'
run: pytest -n 2
- name: Run tests
if: matrix.environment == 'esmvaltool-base-dev'
run: >-
pytest
-n 2
--ignore=tests/sample_data/
--ignore=tests/unit/cmorizers/test_cmorization_interface.py
- name: Upload artifacts
if: ${{ always() }} # upload artifacts even if fail
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: Test_reports_${{ matrix.os }}_${{ matrix.environment }}
path: test-reports
- name: Check the command line interface
run: |
esmvaltool version
esmvaltool -- --help
esmvaltool develop compare -- --help