Skip to content

Commit

Permalink
Add github actions job to run unit tests for 3.8, 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Brunope committed Jan 11, 2023
1 parent 6b33a76 commit 859cfb9
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Unit Test

run-name: Run unit tests
on: [push]

jobs:
run-unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9"]

steps:
- uses: actions/checkout@v3
- name: Install python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m venv venv
. venv/bin/activate
pip install --upgrade pip
pip install -e '.[unittest,typecheck]'
pip install --progress-bar=off -r requirements.txt
pip install --upgrade --progress-bar=off 'pandas==1.1.5'
- name: Typecheck
run: |
. venv/bin/activate
make typecheck
- name: Run nosetests
run: |
. venv/bin/activate
make citest

0 comments on commit 859cfb9

Please sign in to comment.