update contributing.md #37
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: Eyeon Unit Testing | |
on: [push] | |
jobs: | |
testing: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set Up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Virtual Environment Setup | |
run: | | |
python3 -m venv .venv | |
- name: Install Dependencies | |
run: | | |
source .venv/bin/activate | |
pip install build | |
python3 -m build | |
pip install dist/peyeon*.whl | |
echo "Packages installed" | |
- name: Run Unittests | |
run: | | |
source .venv/bin/activate | |
cd tests/ | |
coverage run -m unittest | |
coverage report |