From 454c6053e52b7c70217a89ed98915421b91b9dfe Mon Sep 17 00:00:00 2001 From: Henry Addison Date: Tue, 5 Mar 2024 10:49:07 +0000 Subject: [PATCH] add a ci action --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..804ba6bc4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: CI + +on: [push] + +jobs: + ci-checks: + runs-on: ubuntu-latest + strategy: + max-parallel: 5 + + steps: + - name: Clone repo + uses: actions/checkout@v2 + # - name: Set up Python 3.9 + # uses: actions/setup-python@v2 + # with: + # python-version: 3.9 + - name: setup-micromamba + uses: mamba-org/setup-micromamba@v1.4.1 + with: + environment-file: environment.lock.yml + init-shell: bash + cache-environment: true + post-cleanup: 'all' + - name: Install package + run: | + pip install -e . + shell: micromamba-shell {0} + - name: Test with pytest + run: | + pytest + shell: micromamba-shell {0}