Skip to content

Commit

Permalink
Tests yml for 3.9 3.10 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
MadScrewdriver committed Aug 19, 2023
1 parent f7e9edc commit f471685
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,23 @@ on:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
test:
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.9, 3.10, 3.11 ]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
- name: Set up Python ${{ matrix.python-version }} # Use the matrix version here
uses: actions/setup-python@v3
with:
python-version: 3.9
python-version: ${{ matrix.python-version }} # Use the matrix version here

- name: Install dependencies
run: |
Expand All @@ -39,6 +42,13 @@ jobs:
- name: Run tests with coverage
run: pytest --cov --cov-report=xml

upload-coverage:
needs: test # This job needs the 'test' job to complete successfully first.
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
Expand Down

0 comments on commit f471685

Please sign in to comment.