Skip to content

Commit

Permalink
first pass execute bsts_local action
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Aug 28, 2024
1 parent 7924cb6 commit 2b0fedb
Showing 1 changed file with 23 additions and 37 deletions.
60 changes: 23 additions & 37 deletions .github/workflows/bsts_local.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,35 @@
name: Validate and/or commit simulator

name: BSTS local validation for biosimulators_vcell
# derived from https://raw.githubusercontent.com/biosimulators/Biosimulators/dev/.github/workflows/validateCommitSimulator.yml
on:
issues:
types: [labeled, edited]
workflow_dispatch:
inputs:
vcell_version:
description: 'version.major.minor'
required: true
default: '7.5.0'
vcell_build:
description: 'build number'
required: true
default: '23'
vcell_site:
description: 'rel or alpha'
required: true
default: 'alpha'
server_only:
description: 'Deploy only the server components?'
required: true
default: 'false'

jobs:
validateCommit:
name: Validate and/or commit simulator
runs-on: ubuntu-20.04 # includes Docker
if: |
github.event.issue.state == 'open'
&& contains(github.event.issue.labels.*.name, 'Validate/submit simulator')
&& (
github.event.action == 'edited'
|| (
github.event.action == 'labeled'
&& github.event.label.name == 'Validate/submit simulator'
)
|| (
github.event.action == 'labeled'
&& github.event.label.name == 'Approved'
&& github.event.sender.login != 'biosimulators-daemon'
)
)
steps:
- name: Install Python
uses: actions/setup-python@v3
with:
python-version: '3.11'

#- name: Setup pip cache
# uses: actions/cache@v2
# with:
# path: /opt/hostedtoolcache/Python
# key: ${{ runner.os }}-pip-${{ hashFiles('${GITHUB_WORKSPACE}/requirements.txt') }}-${{ hashFiles('${GITHUB_WORKSPACE}/requirements.optional.txt') }}
# restore-keys: |
# ${{ runner.os }}-pip-

- name: Install pip and setuptools
run: |
python -m pip install --upgrade setuptools
Expand Down Expand Up @@ -114,15 +107,8 @@ jobs:
- name: Login into Docker registries
run: |
# Docker Hub
docker login \
--username ${{ secrets.DOCKER_HUB_USERNAME }} \
--password ${{ secrets.DOCKER_HUB_TOKEN }}
# BioSimulators Docker registry (GHCR)
docker login ${{ secrets.DOCKER_REGISTRY_URL }} \
--username ${{ secrets.DOCKER_REGISTRY_USERNAME }} \
--password ${{ secrets.DOCKER_REGISTRY_TOKEN }}
# VCell Docker registry (GHCR)
docker login ghcr.io --username ${{ secrets.GHCR_USERNAME }} --password ${{ secrets.GHCR_TOKEN }}
- id: validateCommitSimulator
name: Validate and commit simulator
Expand Down Expand Up @@ -152,7 +138,7 @@ jobs:
working-directory: ${{ github.workspace }}
run: |
python -m pip install --upgrade biosimulators_utils
python -c "from biosimulators_test_suite.exec_gh_action import ValidateCommitSimulatorGitHubAction; ValidateCommitSimulatorGitHubAction().run(); exit();"
python -m biosimulators_test_suite.exec_cli.main --verbose biosimulators.json
# If tmate is useful for a particular debugging issue, comment this back in:
# - name: Setup tmate session 3 (if failed)
Expand Down

0 comments on commit 2b0fedb

Please sign in to comment.