Skip to content

Split tests into two blocks #8

Split tests into two blocks

Split tests into two blocks #8

Workflow file for this run

name: Run Tests

Check failure on line 1 in .github/workflows/CI.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/CI.yaml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: legacy_python, modern_python
#concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}
# cancel-in-progress: true
on:
pull_request:
push:
branches:
- "main"
- "breaking"
workflow_dispatch:
jobs:
run_tests:
runs-on: ubuntu-latest
steps:
# Steps common to both groups
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install requirements.txt
python -m pip install tests/requirements.txt
- name: Install package
run: |
python --version
python -c "import parsnip; print('parsnip', parsnip.__version__)"
python -m pip install . -v --progress-bar off
- name: Test with pytest
run: |
python -m pytest -v
modern_python:
needs: run_tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, 3.10, 3.11, 3.12]
legacy_python:
needs: run_tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]