Skip to content

Change CI/CD pipeline to test earlier versions of Python #2

Change CI/CD pipeline to test earlier versions of Python

Change CI/CD pipeline to test earlier versions of Python #2

Workflow file for this run

name: Main Workflow
on: [push, workflow_dispatch]
jobs:
test:
strategy:
fail-fast: false
matrix:
# * test on different operative systems
# * test minimal versions: python 3.10 + strict (minimal) requirements from 'requirements.txt'
# * test latest versions: python 3:x (latest) + latest requirements (eager) from 'pyproject.toml' (.)
os: ["windows-2022", "macos-13", "ubuntu-20.04"]
versions: [
["3.6.7", "-r requirements.txt"],
["3.7.1", "-r requirements.txt"]
]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.versions[0] }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade pytest==8.0.2
pip install --upgrade ${{ matrix.versions[1] }}
- name: Print Versions
run: |
python --version
pip freeze
- name: Run Tests
run: pytest -rfP