Skip to content

Commit

Permalink
test only bigscape
Browse files Browse the repository at this point in the history
  • Loading branch information
CunliangGeng committed Jul 18, 2024
1 parent f767bfa commit 7de97f8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 93 deletions.
35 changes: 1 addition & 34 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,37 +55,4 @@ jobs:
pip install $(ls dist/nplinker*.whl)
install-nplinker-deps --run-on-github
- name: Run unit tests
run: pytest -v

build:
needs: smoke_test
name: Build for (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest']
python-version: ['3.9', '3.11']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Python info
shell: bash -l {0}
run: |
which python3
python3 --version
- name: Upgrade pip and install dependencies
run: |
python3 -m pip install --upgrade pip setuptools
pip install build pytest wheel pytest-xdist
- name: Build the package
run: python -m build
- name: Install nplinker
run: |
pip install $(ls dist/nplinker*.whl)
install-nplinker-deps --run-on-github
- name: Run unit tests
run: pytest -v
run: pytest -v tests/unit/genomics/test_runbigscape.py
57 changes: 0 additions & 57 deletions .github/workflows/sonar-cloud.yml

This file was deleted.

3 changes: 1 addition & 2 deletions tests/unit/genomics/test_runbigscape.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os
import pytest
from nplinker.genomics import bigscape
from .. import DATA_DIR
Expand All @@ -17,7 +16,7 @@ def test_run_bigscape(tmp_path, version):
assert result is True


@pytest.mark.skipif(os.getenv('GITHUB_ACTIONS') == 'true', reason="The test is time-consuming on CI")
# @pytest.mark.skipif(os.getenv('GITHUB_ACTIONS') == 'true', reason="The test is time-consuming on CI")
@pytest.mark.parametrize("version", [1, 2])
def test_run_bigscape_small_dataset(tmp_path, version):
result = bigscape.run_bigscape(
Expand Down

0 comments on commit 7de97f8

Please sign in to comment.