Skip to content

Support Python 3.6+

Support Python 3.6+ #9

Workflow file for this run

name: Run Tests
#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]
steps:
- name: Echo success
run: |
echo "Successfully ran tests for ${{ matrix.python-version }}"
legacy_python:
needs: run_tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
steps:
- name: Echo success
run: |
echo "Successfully ran tests for ${{ matrix.python-version }}"