Skip to content

Commit

Permalink
Create unittest.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
CielAl committed Jan 2, 2024
1 parent 76e87e2 commit 6b8193d
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Python Unittest on Push and PR

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.10] # Currently testing only with 3.10, but easy to add more

steps:
- name: Check out the repository
uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run unittests
run: python -m unittest discover -s tests

0 comments on commit 6b8193d

Please sign in to comment.