Skip to content

Merge pull request #44 from USED255/dev #292

Merge pull request #44 from USED255/dev

Merge pull request #44 from USED255/dev #292

Workflow file for this run

name: Test
on:
workflow_dispatch:
push:
branches:
- "master"
paths:
- "**.py"
- "**.test"
- ".github/workflows/test.yml"
pull_request:
paths:
- "**.py"
- "**.test"
- ".github/workflows/test.yml"
permissions:
id-token: write
jobs:
fast-test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest pytest-cov
- name: Test with pytest
run: |
pytest --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
use_oidc: true
full-test:
name: Test
needs: fast-test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
exclude:
- os: macos-latest
python-version: "3.11"
- os: macos-latest
python-version: "3.7"
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- 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
python -m pip install pytest
- name: Test with pytest
run: |
pytest .