This commit is contained in:
Klemek
2021-04-08 22:56:20 +02:00
parent 9fc1bc0b57
commit 990853110b
+10 -3
View File
@@ -3,7 +3,7 @@ name: Test
on: ["push", "pull_request"]
jobs:
syntax:
build:
runs-on: ubuntu-latest
strategy:
matrix:
@@ -17,8 +17,15 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest black coveralls
python -m pip install flake8 pytest black coveralls pytest-cov
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
syntax:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
steps:
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
@@ -36,7 +43,7 @@ jobs:
python-version: [3.7, 3.8, 3.9]
steps:
- name: Test
run: coverage run --source=miniscord -m pytest tests/
run: pytest --cov=miniscord tests/
- name: Upload coverage data to coveralls.io
run: coveralls
env: