2023-04-05 04:41:24 -04:00
|
|
|
name: Tests
|
2023-04-05 04:30:32 -04:00
|
|
|
|
|
|
|
on:
|
2023-04-10 02:19:22 -04:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
2023-04-05 04:30:32 -04:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
2023-04-06 21:27:01 -04:00
|
|
|
build-linux:
|
2023-04-05 04:30:32 -04:00
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-09-12 18:43:43 -04:00
|
|
|
python-version: ["3.8", "3.9", "3.10", "3.11"]
|
2023-04-05 04:30:32 -04:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-04-05 04:34:19 -04:00
|
|
|
with:
|
2023-04-05 04:35:15 -04:00
|
|
|
submodules: "true"
|
2023-04-05 04:30:32 -04:00
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
2023-07-18 18:52:29 -04:00
|
|
|
python3 -m pip install --upgrade pip
|
|
|
|
python3 -m pip install .[all] -v
|
2023-04-05 04:30:32 -04:00
|
|
|
- name: Test with pytest
|
|
|
|
run: |
|
2023-07-18 18:52:29 -04:00
|
|
|
python3 -m pytest
|
2023-04-06 21:27:01 -04:00
|
|
|
|
|
|
|
build-windows:
|
|
|
|
|
|
|
|
runs-on: windows-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-09-12 18:43:43 -04:00
|
|
|
python-version: ["3.8", "3.9", "3.10", "3.11"]
|
2023-04-06 21:27:01 -04:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: "true"
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
2023-07-18 18:52:29 -04:00
|
|
|
python3 -m pip install --upgrade pip
|
|
|
|
python3 -m pip install .[all] -v
|
2023-04-06 21:27:01 -04:00
|
|
|
- name: Test with pytest
|
|
|
|
run: |
|
2023-07-18 18:52:29 -04:00
|
|
|
python3 -m pytest
|
2023-04-06 21:27:01 -04:00
|
|
|
|
2023-04-06 21:28:03 -04:00
|
|
|
build-macos:
|
2023-04-06 21:27:01 -04:00
|
|
|
|
|
|
|
runs-on: macos-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-09-12 18:43:43 -04:00
|
|
|
python-version: ["3.8", "3.9", "3.10", "3.11"]
|
2023-04-06 21:27:01 -04:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: "true"
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
2023-07-18 18:52:29 -04:00
|
|
|
python3 -m pip install --upgrade pip
|
2023-09-12 18:21:49 -04:00
|
|
|
python3 -m pip install .[all] --verbose
|
2023-04-06 21:27:01 -04:00
|
|
|
- name: Test with pytest
|
|
|
|
run: |
|
2023-07-18 18:52:29 -04:00
|
|
|
python3 -m pytest
|