update model names and comment out the print(ex) #32
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: Unittest Ubuntu and macOS | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
unittest: | |
name: Test Python ${{ matrix.python-version }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
defaults: | |
run: | |
shell: bash -el {0} | |
if: github.event.pull_request.draft == false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install PMM and dependencies | |
run: | | |
python3 -m venv pmm_venv | |
source pmm_venv/bin/activate | |
python3 -m pip install requests | |
python3 -m pip install requests | |
python3 -m pip install aiohttp | |
python3 -m pip install nest_asyncio | |
pip3 install . | |
- name: Run tests | |
run: | | |
source pmm_venv/bin/activate | |
./unittest/run_testcases.sh |