Merge pull request #243 from benjeffery/update-ubuntu-2412 #327
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: Tests | |
on: | |
pull_request: | |
push: | |
branches: [main, test] | |
jobs: | |
pre-commit: | |
name: Lint | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
python-version: '3.11' | |
- uses: pre-commit/[email protected] | |
test: | |
name: Python | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python: [ "3.11" ] | |
os: [ ubuntu-24.04, ] | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout | |
uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
python-version: '3.11' | |
cache: 'pip' | |
- name: Install deps | |
run: | | |
pip install -r requirements.txt | |
playwright install | |
- name: Tests with numba | |
run: coverage run --source=tsbrowse -m pytest -x tests | |
- name: Tests with coverage (no numba) | |
run: TSBROWSE_DISABLE_NUMBA=1 coverage run --source=tsbrowse -m pytest -x tests | |
- name: Upload coverage | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
coveralls --service=github | |
- name: Build wheel | |
run: python -m build --wheel | |
- name: Install wheel | |
run: | | |
pip install dist/*.whl | |
python -m tsbrowse --help |