sphinx-autoapi/.github/workflows/main.yml

28 lines
693 B
YAML
Raw Normal View History

2021-04-05 01:50:39 +00:00
name: tests
2023-03-23 05:33:11 +00:00
on:
- push
- pull_request
2021-04-05 01:50:39 +00:00
jobs:
test:
strategy:
matrix:
2023-01-17 04:15:27 +00:00
python-version: [3.7, 3.8, 3.9, '3.10', 3.11]
2021-04-05 01:50:39 +00:00
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
2023-03-23 05:33:11 +00:00
- uses: actions/checkout@v3
with:
fetch-depth: 0
2021-04-05 01:50:39 +00:00
- name: Set up Python ${{ matrix.python-version }}
2023-03-23 05:33:11 +00:00
uses: actions/setup-python@v4
2021-04-05 01:50:39 +00:00
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
2023-03-23 05:33:11 +00:00
python -m pip install tox tox-gh-actions
2021-04-05 01:50:39 +00:00
- name: Run tests
2023-03-23 05:33:11 +00:00
run: tox