Skip to content

Commit 57de2d5

Browse files
authored
chore: fix test.yml for python 3.6 (#54)
* chore: fix test.yml for python 3.6 * Update test.yml * Update test.yml
1 parent fb381a8 commit 57de2d5

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Linter & Tests
1+
name: Tests
22

33
on:
44
push:
@@ -8,13 +8,17 @@ on:
88

99
jobs:
1010
test:
11-
runs-on: ubuntu-latest
11+
env:
12+
DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }}
13+
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
1214
strategy:
1315
fail-fast: false
1416
max-parallel: 5
1517
matrix:
16-
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
17-
18+
python-version: ['3.7', '3.8', '3.9', '3.10']
19+
include:
20+
- python-version: 3.6
21+
os: ubuntu-20.04
1822
steps:
1923
- uses: actions/checkout@v2
2024
with:
@@ -31,21 +35,15 @@ jobs:
3135
python -m pip install --upgrade pip
3236
pip install -r requirements.dev.txt
3337
34-
- name: Lint with flake8 and black
35-
run: |
36-
# stop the build if there are Python syntax errors or undefined names
37-
flake8 . --count
38-
black . --check
39-
4038
- name: Run tox tests
4139
run: |
4240
# run tests with coverage
4341
tox
4442
45-
- name: Report test coverage to DeepSource
46-
uses: deepsourcelabs/test-coverage-action@master
47-
with:
48-
key: python
49-
coverage-file: coverage.xml
50-
dsn: ${{ secrets.DEEPSOURCE_DSN }}
51-
fail-ci-on-error: true
43+
- name: Report test-coverage to DeepSource
44+
run: |
45+
# Install the CLI
46+
curl https://deepsource.io/cli | sh
47+
48+
# Send the report to DeepSource
49+
./bin/deepsource report --analyzer test-coverage --key python --value-file coverage.xml

0 commit comments

Comments
 (0)