Skip to content

GHA matrix tweaks

GHA matrix tweaks #108

Workflow file for this run

name: Tests

Check failure on line 1 in .github/workflows/Tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/Tests.yml

Invalid workflow file

Invalid type for `job.strategy`
on:
push:
branches: master
pull_request:
branches: master
jobs:
miniconda-setup:
name: Env (${{ matrix.environment }}) - Py${{ matrix.python-version }}
strategy:
fail-fast: false
matrix:
python-version: [3.9, 3.12]
environment: ["min-deps", "full", "min-ver"]
exclude:
- python-version: 3.9
environment: "full"
exclude:
- python-version: 3.12
environment: "min-ver"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
mamba-version: "*"
channel-priority: true
activate-environment: test
environment-file: devtools/conda-envs/${{ matrix.environment }}-environment.yaml
- name: Environment Information
shell: bash -l {0}
run: |
conda info
conda list
conda config --show-sources
conda config --show
- name: Install
shell: bash -l {0}
run: |
python -m pip install . --no-deps
- name: Test
shell: bash -l {0}
run: |
pytest -v --cov=opt_einsum opt_einsum/ --cov-report=xml
- name: Coverage
shell: bash -l {0}
run: |
coverage report
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml