Skip to content

V1.0.x

V1.0.x #221

Workflow file for this run

name: Tests
on:
push:
branches:
- main
- master
- develop
pull_request:
branches:
- main
- master
- develop
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
cache: 'pip'
- name: Install linting tools
run: |
python -m pip install --upgrade pip
pip install black==24.4.2 isort==5.13.2
- name: Check formatting with black
run: black --check gators/
- name: Sort the imports with isort
run: isort --check-only --profile black gators/
# - name: Type check with mypy
# run: mypy gators/
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
os: [ubuntu-latest]
include:
- python-version: "3.13"
os: macos-latest
steps:
- name: Checkout code
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 libomp on macOS
if: runner.os == 'macOS'
run: brew install libomp
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Run tests with coverage
run: |
pytest
- name: Build wheel
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.14'
run: |
python -m pip install build
python -m build
- name: Upload wheel
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.14'
uses: actions/upload-artifact@v4
with:
name: dist-packages
path: dist/