60 lines
1.2 KiB
YAML
60 lines
1.2 KiB
YAML
name: tests
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
ubuntu-tests:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
python-version: [3.7, 3.12]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v4.3.0
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install Ubuntu dependencies
|
|
run: |
|
|
make install_apt
|
|
|
|
- name: Install Python dependencies
|
|
run: |
|
|
make install_pip PIP_ARGS='.["test"]'
|
|
|
|
- name: Run tests on Ubuntu
|
|
run: |
|
|
make test
|
|
|
|
macos-tests:
|
|
runs-on: macos-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
python-version: [3.7, 3.12]
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v4.3.0
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Set up macOS dependencies
|
|
run: |
|
|
make install_brew
|
|
|
|
- name: Install Python dependencies
|
|
run: |
|
|
make install_pip PIP_ARGS='.["test"]'
|
|
|
|
- name: Run tests on macOS
|
|
run: |
|
|
make test
|