aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/python.yml
diff options
context:
space:
mode:
authorclpo13 <cody@lokken.dev>2023-10-20 16:57:32 -0700
committerGitHub <noreply@github.com>2023-10-20 16:57:32 -0700
commit8583862e2d16144f184db2e31dbc37dbe3464fed (patch)
tree4a0d9edb5301b26d9dbd22ceb307a7e3b1db4820 /.github/workflows/python.yml
parente274ccea56219c7d07c0e677d44c8122a699dcaf (diff)
parentc1820026f97eaf671c29ab30f02879de0ac4df89 (diff)
downloadwikiget-8583862e2d16144f184db2e31dbc37dbe3464fed.tar.gz
wikiget-8583862e2d16144f184db2e31dbc37dbe3464fed.zip
Merge pull request #8 from clpo13/dev
Merge dev branch changes into master
Diffstat (limited to '.github/workflows/python.yml')
-rw-r--r--.github/workflows/python.yml20
1 files changed, 14 insertions, 6 deletions
diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml
index bef2670..7f44810 100644
--- a/.github/workflows/python.yml
+++ b/.github/workflows/python.yml
@@ -5,9 +5,9 @@ name: Python package
on:
push:
- branches: [ "master" ]
+ branches: [ "dev" ]
pull_request:
- branches: [ "master" ]
+ branches: [ "master", "dev" ]
jobs:
build:
@@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
+ python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
@@ -27,12 +27,20 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
- python -m pip install flake8 pytest pytest-cov
+ python -m pip install flake8 pytest "coverage[toml]"
python -m pip install .
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
- flake8 . --count --show-source --statistics
+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Test with pytest
run: |
- pytest
+ coverage run -m pytest
+ - name: Convert coverage file to XML
+ run: |
+ coverage combine
+ coverage xml
+ - name: Upload coverage reports to Codecov
+ uses: codecov/codecov-action@v3
+ env:
+ CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}