👷 support cross platform test

This commit is contained in:
yanyongyu
2022-01-13 17:58:35 +08:00
parent b52ccc3690
commit 88bd49de45
3 changed files with 23 additions and 8 deletions

View File

@ -6,13 +6,21 @@ on:
jobs:
test:
runs-on: ubuntu-latest
name: Run Pytest and Upload Coverage
strategy:
matrix:
python: ["pypy-3.7", "3.7", "pypy-3.8", "3.8", "3.9", "3.10"]
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup Python environment
uses: ./.github/actions/setup-python
with:
python-version: ${{ matrix.python }}
- name: Run Pytest
run: |