Skip to content

[pre-commit.ci] pre-commit autoupdate (#345) #750

[pre-commit.ci] pre-commit autoupdate (#345)

[pre-commit.ci] pre-commit autoupdate (#345) #750

Workflow file for this run

name: CI Additional
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
doctests:
name: Doctests
runs-on: ubuntu-latest
if: github.repository == 'xarray-contrib/pint-xarray'
env:
FORCE_COLOR: 3
steps:
- name: checkout the repository
uses: actions/checkout@v5
with:
# need to fetch all tags to get a correct version
fetch-depth: 0 # fetch all branches and tags
- name: setup environment
uses: prefix-dev/setup-pixi@28eb668aafebd9dede9d97c4ba1cd9989a4d0004 # 0.9.2
with:
environments: "doctests"
- name: import pint-xarray
run: |
pixi run -e doctests python -c 'import pint_xarray'
- name: run doctests
run: |
pixi run -e doctests doctests