example 6: vampseq #540
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: Run Tests (On Push) | |
| on: | |
| push: | |
| jobs: | |
| run-tests-ubuntu-24_04-python-3_12_from_apt: | |
| runs-on: ubuntu-24.04 | |
| name: Ubuntu 24.04, Python 3.12 from Apt | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - run: sudo apt update -y | |
| - run: sudo apt-get -U upgrade -y | |
| - run: sudo apt install python3.12-full python3-pip xvfb | |
| - run: python3.12 -m venv /tmp/venv | |
| - run: /tmp/venv/bin/python -m pip install --upgrade pip | |
| - run: /tmp/venv/bin/python -m pip install -e .[dev] | |
| - run: xvfb-run /tmp/venv/bin/python -m pytest -m "not slow" -v -rP --doctest-modules countess/ tests/ | |
| run-tests-ubuntu-24_04-python-3_13: | |
| runs-on: ubuntu-24.04 | |
| name: Ubuntu 24.04, Python 3.x | |
| steps: | |
| - run: sudo apt update -y | |
| - run: sudo apt-get -U upgrade -y | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.13" | |
| cache: 'pip' | |
| - run: sudo apt install xvfb libopenblas0 libopenblas-dev | |
| - run: python3 -m venv /tmp/venv | |
| - run: /tmp/venv/bin/python -m pip install --upgrade pip | |
| - run: /tmp/venv/bin/python -m pip install -e .[dev] | |
| - run: xvfb-run /tmp/venv/bin/coverage run --source countess -m pytest -m "not slow" -v -rP --doctest-modules countess/ tests/ | |
| - run: echo '### Coverage Report' >> $GITHUB_STEP_SUMMARY | |
| - run: /tmp/venv/bin/coverage report --format=markdown --skip-empty --sort=-cover >> $GITHUB_STEP_SUMMARY | |
| run-tests-ubuntu-latest-python-3_from_apt: | |
| runs-on: ubuntu-latest | |
| name: Ubuntu (Latest), Python 3 from Apt | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - run: sudo apt update -y | |
| - run: sudo apt-get -U upgrade -y | |
| - run: sudo apt install python3-full python3-pip xvfb | |
| - run: python3 -m venv /tmp/venv | |
| - run: /tmp/venv/bin/python -m pip install --upgrade pip | |
| - run: /tmp/venv/bin/python -m pip install -e .[dev] | |
| - run: xvfb-run /tmp/venv/bin/python -m pytest -m "not slow" -v -rP --doctest-modules countess/ tests/ | |
| run-tests-ubuntu-latest-python-latest: | |
| runs-on: ubuntu-latest | |
| name: Ubuntu (Latest), Python (Latest) | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: ">3.13" | |
| cache: 'pip' | |
| - run: sudo apt update -y | |
| - run: sudo apt-get -U upgrade -y | |
| - run: sudo apt install xvfb libopenblas0 libopenblas-dev | |
| - run: python3 -m venv /tmp/venv | |
| - run: /tmp/venv/bin/python -m pip install --upgrade pip | |
| - run: /tmp/venv/bin/python -m pip install -e .[dev] | |
| - run: xvfb-run /tmp/venv/bin/python -m pytest -m "not slow" -v -rP --doctest-modules countess/ tests/ |