From 74ac5454824d487d7bf45cbcc534c3061f6f2f5d Mon Sep 17 00:00:00 2001 From: Eshaan Bansal Date: Thu, 4 May 2023 01:23:26 +0530 Subject: [PATCH] chore: fix test.yml for Python 3.5 and 3.6 (#39) * chore: fix test.yml for Python 3.5 and 3.6 * Update test.yml --- .github/workflows/test.yml | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ac2e0a4..f1f5f7b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 @@ -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