Skip to content

Debug CI

Debug CI #97

Workflow file for this run

name: "test"
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python_version: ["3.10", "3.11", "3.12"]
defaults:
run:
shell: bash
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python_version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
cache: "pip"
- name: Install dependencies
run: pip install ".[dev]"
- name: Load cached sample data and proffast code
uses: actions/cache@v4
with:
path: |
data/testing/container/em27-retrieval-pipeline-test-inputs-1.0.0.tar.gz
src/retrieval/algorithms/proffast-1.0/main/prf
src/retrieval/algorithms/proffast-2.2/main/prf
src/retrieval/algorithms/proffast-2.3/main/prf
src/retrieval/algorithms/proffast-2.4/main/prf
key: v1.0.0-ci-cache
# Run quick tests for all python versions except 3.10
- name: Run quick tests
if: matrix.python_version != "3.10"

Check failure on line 43 in .github/workflows/test.yaml

View workflow run for this annotation

GitHub Actions / test

Invalid workflow file

The workflow is not valid. .github/workflows/test.yaml (Line: 43, Col: 13): Unexpected symbol: '"3'. Located at position 26 within expression: matrix.python_version != "3.10" .github/workflows/test.yaml (Line: 49, Col: 13): Unexpected symbol: '"3'. Located at position 26 within expression: matrix.python_version == "3.10"
run: |
pytest -m "quick" --capture=no --verbose --exitfirst --cov=src tests/
# Run all tests for python 3.10
- name: Run quick and ci tests
if: matrix.python_version == "3.10"
run: |
pytest -m "quick or ci" --capture=no --verbose --exitfirst --cov=src tests/