diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 6b4ee8f..e9ccb48 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -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: