Skip to content

Set up CI

Set up CI #8

Workflow file for this run

name: Run unit tests
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v2
with:
environment-file: environment.yml
init-shell: >-
bash
cache-environment: false
create-args: python=${{ matrix.python-version }}
post-cleanup: 'all'
- name: Install xcengine
shell: bash -el {0}
run: |
python --version
pip install --no-deps --editable .
- name: Run pytest
shell: bash -el {0}
run: |
pytest