add unit tests for main.py functions #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Runner Unit Tests | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
unit-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install requirements | |
run: | | |
python -m venv venv | |
source venv/bin/activate | |
venv/bin/python -m pip install pytest | |
venv/bin/python -m pip install -r requirements.txt | |
- name: Basic Unit Test | |
run: pytest test/test.py -W ignore::DeprecationWarning | |
env: | |
PYTHONPATH: test |