Unit Testing v1.1.0 #3
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: Unit Tests | |
run-name: Unit Testing ${{ github.ref_name }} | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- 'pds/' | |
- '.github/workflows/tests.yml' | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
unittest: | |
name: Running Unit tests | |
runs-on: ubuntu-latest | |
container: | |
image: python:3.9 | |
options: --user root | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Create virtual env and activate | |
run: | | |
python -m venv env | |
- name: Get requirements | |
run: | | |
source env/bin/activate | |
python -m pip install -r requirements.txt | |
- name: Run tests | |
run: | | |
source env/bin/activate | |
python -m unittest discover -s . -p *_test.py |