added unit for cell voltages #37
This file contains hidden or 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: Unittests | |
| on: | |
| push: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: '3.x' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Run unittests | |
| run: python3 -m unittest discover -s tests -p "*.py" | |
| - name: Run field unittests | |
| run: python3 -m unittest discover -s tests/fields -p "*.py" | |
| - name: Run register unittests | |
| run: python3 -m unittest discover -s tests/registers -p "*.py" | |
| - name: Run base device unittests | |
| run: python3 -m unittest discover -s tests/base_devices -p "*.py" | |
| - name: Run device unittests | |
| run: python3 -m unittest discover -s tests/devices -p "*.py" |