Skip to content

Commit

Permalink
try another test using micromamba
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Mather committed Nov 21, 2023
1 parent 72a2920 commit 2ab04d3
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Test stripy

on:
push

jobs:
build:
name: Test Python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]

defaults:
run:
shell: bash -el {0}

steps:
- uses: actions/checkout@v2
- uses: mamba-org/setup-micromamba@v1
- with:
environment-name: test-env
create-args: >-
python=${{ matrix.python-version }}
numpy
pytest
fortran-compiler
gfortran
build
meson
micromamba-version: "1.3.1-0"
init-shell: >-
bash
powershell
cache-environment: true
post-cleanup: "all"

- name: Install current stripy
run: |
pip install .
- name: Test with pytest
run: |
python -m pytest -vv stripy/tests

0 comments on commit 2ab04d3

Please sign in to comment.