kjlippold is running HydroServer SensorThings Tests on refs/heads/91-pydantic-v2 #105
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: HydroServer SensorThings Tests | |
run-name: ${{ github.actor }} is running HydroServer SensorThings Tests on ${{ github.ref }} | |
on: [push, pull_request] | |
jobs: | |
run_tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.9', '3.10', '3.11', '3.12'] | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Switch to Current Branch | |
run: git checkout ${{ env.BRANCH }} | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e . | |
pip install pytest | |
- name: Run unit tests | |
run: | | |
python -m pytest --import-mode=append tests/ |