Skip to content

Ommited check-manifest in release workflow #165

Ommited check-manifest in release workflow

Ommited check-manifest in release workflow #165

Workflow file for this run

name: "Run Tests"
on:
push:
branches:
- main
paths:
- "tutorials/**"
- "dlordinal/**"
- ".github/workflows/**"
- "pyproject.toml"
pull_request:
branches:
- main
paths:
- "tutorials/**"
- "dlordinal/**"
- ".github/workflows/**"
- "pyproject.toml"
jobs:
pytest:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-24.04, macOS-14, windows-2022 ]
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-xdist
pip install .
- name: Run tests
run: python -m pytest -n logical
tests-codecov:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10"]
steps:
- name: Checkout repository
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 --upgrade pip
pip install codecov
pip install pytest-cov
pip install .
- name: Run tests for codecov
run: |
pytest --cov=dlordinal --cov-report=xml
timeout-minutes: 20
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
tests-dev-docs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout repository
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 --upgrade pip
pip install .[dev,docs]
- name: Run tests
run: |
pytest
timeout-minutes: 20