From 43489400d94ba68477ec2040ec8e1625192780ef Mon Sep 17 00:00:00 2001 From: Cody Logan Date: Fri, 6 Oct 2023 14:03:55 -0700 Subject: Update actions for dev branch and Python 3.12 --- .github/workflows/python.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index bef2670..499c01a 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 @@ -32,7 +32,7 @@ jobs: - 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 -- cgit v1.2.3 From 1fb093e26709573e03fa0feb4afa53a22568d92e Mon Sep 17 00:00:00 2001 From: Cody Logan Date: Fri, 6 Oct 2023 14:07:30 -0700 Subject: Remove unneeded dependency in tests --- .github/workflows/python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/workflows') diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 499c01a..321ed44 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -27,7 +27,7 @@ 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 python -m pip install . - name: Lint with flake8 run: | -- cgit v1.2.3 From b1cc0b5e6f8f761b806885f646602ac24d74243e Mon Sep 17 00:00:00 2001 From: Cody Logan Date: Mon, 9 Oct 2023 10:08:40 -0700 Subject: Add Codecov report to actions file --- .github/workflows/python.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 321ed44..d02c1b5 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -27,7 +27,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip setuptools wheel - python -m pip install flake8 pytest + python -m pip install flake8 pytest "coverage[toml]" python -m pip install . - name: Lint with flake8 run: | @@ -35,4 +35,8 @@ jobs: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - name: Test with pytest run: | - pytest + coverage run -m pytest + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} -- cgit v1.2.3 From 6e5febfbebea23ee9c7ba5593dbb393034c2e955 Mon Sep 17 00:00:00 2001 From: Cody Logan Date: Mon, 9 Oct 2023 10:17:44 -0700 Subject: Add coverage conversion step --- .github/workflows/python.yml | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index d02c1b5..7f44810 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -36,6 +36,10 @@ jobs: - name: Test with pytest run: | 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: -- cgit v1.2.3