Skip to content

Commit

Permalink
Add: GitHub action on pull request to main
Browse files Browse the repository at this point in the history
  • Loading branch information
omltcat committed Apr 14, 2024
1 parent 696912e commit cbd1dd7
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Unit and System Tests

on:
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run pytest
run: |
pytest --cov=src --cov-fail-under=95 -m "unit and not slow or system"

0 comments on commit cbd1dd7

Please sign in to comment.