Skip to content

Commit

Permalink
build(workflows): add run tests workflow to the project
Browse files Browse the repository at this point in the history
Fixes: #5
  • Loading branch information
piraz committed Mar 24, 2024
1 parent b588c2f commit 8f08a44
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Run peasant tests

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements/basic.txt
pip install -r requirements/all.txt
pip install -r requirements/tests.txt
- name: Run python unit tests
run: |
PYTHONPATH=$PYTHONPATH:. python tests/runtests.py

0 comments on commit 8f08a44

Please sign in to comment.