Skip to content

migrate the CI setup to pixi #652

migrate the CI setup to pixi

migrate the CI setup to pixi #652

Workflow file for this run

name: CI Additional

Check failure on line 1 in .github/workflows/ci-additional.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci-additional.yml

Invalid workflow file

(Line: 36, Col: 13): A sequence was not expected
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@v4
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@8ca4608ef7f4daeb54f5205b20d0b7cb42f11143 # 0.8.14
with:
cache: true
environments:
- doctests
- name: import pint-xarray
run: |
pixi run -e ${{ matrix.env }} python -c 'import pint_xarray'
- name: run doctests
run: |
pixi run -e doctests doctests