Skip to content

chore: add tests to main CI #11

chore: add tests to main CI

chore: add tests to main CI #11

Workflow file for this run

name: Unit Tests
on:
push:
branches:
- main
pull_request:
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Read Python version
id: read_python_version
run: echo "PYTHON_VERSION=$(cat .python-version)" >> $GITHUB_ENV
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "${{ env.PYTHON_VERSION }}"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: python -m unittest discover test