Skip to content

Add dmf-utils logo

Add dmf-utils logo #7

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
exclude:
# Exclude all Python versions except 3.9 for macOS and Windows
- os: macos-latest
python-version: "3.7"
- os: macos-latest
python-version: "3.8"
- os: macos-latest
python-version: "3.10"
- os: macos-latest
python-version: "3.11"
- os: macos-latest
python-version: "3.12"
- os: windows-latest
python-version: "3.7"
- os: windows-latest
python-version: "3.8"
- os: windows-latest
python-version: "3.10"
- os: windows-latest
python-version: "3.11"
- os: windows-latest
python-version: "3.12"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip and wheel
run: |
pip install --upgrade pip wheel -q
- name: Install dependencies
run: |
pip install ".[all,extra]"
- name: Run tests
run: |
python -m unittest discover -s tests -p 'test_*.py'