chore: add more test matrices (#70)

This commit is contained in:
Aaron Pham
2023-06-25 03:44:03 -04:00
committed by GitHub
parent acb6a3cb32
commit f0773f2d01
2 changed files with 11 additions and 4 deletions

View File

@@ -24,6 +24,7 @@ env:
COLUMNS: 120
OPENLLM_DO_NOT_TRACK: True
PYTHONUNBUFFERED: '1'
STABLE_PYTHON_VERSION: '3.11'
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#defaultsrun
defaults:
run:
@@ -36,24 +37,27 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
name: tests-${{ matrix.os }}
python-version: ['3.8', '3.9', '3.10', '3.11']
name: tests-${{ matrix.os }}-${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup CI
uses: ./.github/actions/setup-repo
with:
python-version: ${{ matrix.python-version }}
- name: Run tests
run: hatch run test:full
- name: Disambiguate coverage filename
run: mv .coverage ".coverage.${{ matrix.os }}"
run: mv .coverage ".coverage.${{ matrix.os }}.${{ matrix.python-version }}"
- name: Upload coverage data
uses: actions/upload-artifact@v3
with:
name: coverage-data
path: .coverage.*
coverage:
name: Coverage
name: report-coverage
runs-on: ubuntu-latest
needs:
- tests
@@ -63,6 +67,8 @@ jobs:
fetch-depth: 0
- name: Setup CI
uses: ./.github/actions/setup-repo
with:
python-version: ${{ env.STABLE_PYTHON_VERSION }}
- name: Download coverage data
uses: actions/download-artifact@v3
with:
@@ -99,5 +105,5 @@ jobs:
with:
jobs: ${{ toJSON(needs) }}
concurrency:
group: ci-${{ github.event.pull_request.number || github.sha }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true