Skip to content

Add GitHub Action to run unit tests automatically on push #276

Add GitHub Action to run unit tests automatically on push

Add GitHub Action to run unit tests automatically on push #276

Workflow file for this run

name: Continuous Integration

Check failure on line 1 in .github/workflows/unittests.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/unittests.yaml

Invalid workflow file

`pull request` is not a valid event name
on: [push, pull request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.12.0
architecture: x64
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run Tests
run: python -m pytest