Skip to content

Commit

Permalink
try to switch to 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquelynsmale committed Mar 20, 2024
1 parent b5e7d13 commit 95ea4c5
Showing 1 changed file with 31 additions and 6 deletions.
37 changes: 31 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,41 @@
name: Test with pytest

on: push
on:
workflow_call:
inputs:
local_package_name:
required: true
type: string
python_versions:
required: false
default: >-
["3.8"]
description: JSON string containing the list of python versions to test
type: string
fail_fast:
required: false
default: false
description: Cancel all in-progress and queued pytest jobs if any job in the matrix fails
type: boolean

jobs:
pytest:
runs-on: ubuntu-latest

strategy:
fail-fast: ${{ inputs.fail_fast }}
matrix:
python_version: ${{ fromJson(inputs.python_versions) }}

steps:
- uses: actions/checkout@v4

- uses: mamba-org/provision-with-micromamba@v16
- uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
create-args: >-
python=${{ matrix.python_version }}
- shell: bash -l {0}
- name: Pytest in conda environment
shell: bash -l {0}
run: |
make pytest
python -m pip install --no-deps .
pytest --cov=${{ inputs.local_package_name }}

0 comments on commit 95ea4c5

Please sign in to comment.