Skip to content

Commit

Permalink
chore: fix test.yml for Python 3.5 and 3.6 (#39)
Browse files Browse the repository at this point in the history
* chore: fix test.yml for Python 3.5 and 3.6

* Update test.yml
  • Loading branch information
eshaan7 committed May 3, 2023
1 parent a1a97ba commit 74ac545
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,19 @@ on:

jobs:
test:
runs-on: ubuntu-latest
env:
DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }}
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
strategy:
fail-fast: false
max-parallel: 6
matrix:
python-version: ['3.5', '3.6', '3.7', '3.8', '3.9', '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10']
include:
- python-version: 3.5
os: ubuntu-20.04
- python-version: 3.6
os: ubuntu-20.04

steps:
- uses: actions/checkout@v2
Expand All @@ -36,10 +43,11 @@ jobs:
# run tests with coverage
tox
- name: Report test coverage to DeepSource
uses: deepsourcelabs/test-coverage-action@master
with:
key: python
coverage-file: coverage.xml
dsn: ${{ secrets.DEEPSOURCE_DSN }}
fail-ci-on-error: true
- name: Report test-coverage to DeepSource
if: ${{ matrix.python-version == '3.10' }}
run: |
# Install the CLI
curl https://deepsource.io/cli | sh
# Send the report to DeepSource
./bin/deepsource report --analyzer test-coverage --key python --value-file coverage.xml

0 comments on commit 74ac545

Please sign in to comment.