Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
chore: add test matrix for supported Python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
nate-credoai committed May 2, 2023
1 parent 5eab949 commit 9183cbb
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@ on:
jobs:
run-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Set up python
uses: actions/setup-python@v2
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -28,14 +32,16 @@ jobs:
pip install -r requirements-dev.txt
- name: Run tests
run: |
scripts/test.sh
set -o pipefail
scripts/test.sh | tee ./pytest-coverage.txt
- name: my-artifact
if: always()
if: always() && !env.ACT
uses: actions/upload-artifact@v3
with:
name: pytest-coverage
path: pytest-coverage.txt
- name: Pytest coverage comment
if: always() && !env.ACT
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-coverage-path: ./pytest-coverage.txt

0 comments on commit 9183cbb

Please sign in to comment.