Skip to content

Commit

Permalink
workflows: update pytest-tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhaddock committed Dec 27, 2024
1 parent 06a30bb commit 486ea77
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
---

name: Python application
name: pytest tests

on:
push:
branches: [ "dev" ]
branches: ["dev", "main"]
pull_request:
branches: [ "dev" ]
branches: ["dev"]

permissions:
contents: read
Expand All @@ -24,7 +25,7 @@ jobs:
with:
python-version: "3.12"
- name: Install packages
run: sudo apt-get install -y imagemagick
run: sudo apt-get install -y imagemagick
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -36,10 +37,9 @@ jobs:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
coverage run -m pytest -v -s
- name: Generate Coverage Report
run: |
- name: Test with pytest
run: |
coverage run -m pytest -v -s
- name: Generate Coverage Report
run: |
coverage report -m

0 comments on commit 486ea77

Please sign in to comment.