Skip to content

Commit

Permalink
Add test workflow on opening pull request and merging to master
Browse files Browse the repository at this point in the history
Closes #1
  • Loading branch information
zpieslak committed Sep 25, 2024
1 parent 1c400f6 commit 8ddaeb7
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Test

on:
push:
branches:
- main
pull_request:
branches:
- main

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v3
with:
python-version: 3.11
- name: Install dependencies
run: pip install -r requirements.txt -r requirements_test.txt
- name: Lint with flake8
run: flake8 . --count --statistics
- name: Lint with mypy
run: mypy .
- name: Test
run: coverage run -m unittest -v
- name: Verify coverage
run: coverage report --fail-under=95

0 comments on commit 8ddaeb7

Please sign in to comment.