mirror of
https://github.com/bentoml/OpenLLM.git
synced 2026-05-07 23:32:46 -04:00
chore: add more test matrices (#70)
This commit is contained in:
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user