docs: improve the API description #2
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: Python Unit Tests | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
server-unittests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies in Python 3.11 | |
run: | | |
python3.11 -m pip install --upgrade pip | |
python3.11 -m pip install -r server/requirements.txt | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Install dependencies in Python 3.12 | |
run: | | |
python3.12 -m pip install --upgrade pip | |
python3.12 -m pip install -r server/requirements.txt | |
- name: Run tests | |
run: | | |
cd server | |
python3.11 -m unittest tests/*.py | |
python3.12 -m unittest tests/*.py |