Skip to content

Commit

Permalink
update cd and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPatrie committed Sep 16, 2024
1 parent 894abbe commit 8a0548f
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 10 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Continuous Deployment

# on:
# workflow_dispatch:

on:
workflow_run:
workflows:
- Continuous Integration
types:
- completed
workflow_dispatch:

# on:
# workflow_run:
# workflows:
# - Continuous Integration
# types:
# - completed

jobs:
release_new_version:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
- name: Test BioCompose
run: |
pytest
pytest tests/main.py
1 change: 0 additions & 1 deletion bio_compose/_VERSION

This file was deleted.

8 changes: 8 additions & 0 deletions tests/main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from bio_compose import get_compatible_verification_simulators
from bio_compose.verifier import Verifier
from bio_compose.runner import SimulationRunner
from bio_compose.composer import Composer
Expand All @@ -7,12 +8,19 @@
DEFAULT_DURATION = 10
DEFAULT_NSTEPS = 100
DEFAULT_SBML_SIMULATORS = ['amici', 'copasi', 'tellurium']
DEFAULT_SBML_TEST_FILE = './fixtures/sbml-core/BIOMD0000000001_url.xml'
DEFAULT_OMEX_TEST_FILE = './fixtures/sbml-core/BIOMD0000000001.omex'

test_runner = SimulationRunner()
test_verifier = Verifier()
test_composer = Composer()


def test_get_compatible():
comp = get_compatible_verification_simulators(DEFAULT_OMEX_TEST_FILE)
assert len(comp)


def test_run_smoldyn():
pass

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 8a0548f

Please sign in to comment.