Skip to content

Commit

Permalink
start testing
Browse files Browse the repository at this point in the history
  • Loading branch information
drbergman committed Sep 5, 2024
1 parent 6543ec0 commit 5749e79
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: CI_test
on:
push:
branches:
- main
- development
- feature-tests

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Download PhysiCell
run: |
python ./tests/get_my_physicell.py
unzip PhysiCell-my-physicell.zip PhysiCell
16 changes: 16 additions & 0 deletions tests/get_my_physicell.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Python script to download the latest release of PhysiCell

import requests

branch = "my-physicell"

response = requests.get(f"https://api.github.com/repos/drbergman/PhysiCell/branches/{branch}")
print(response)
release_name_str = response.json()["name"]

remote_url = f"https://github.com/drbergman/PhysiCell/archive/refs/heads/{branch}.zip"
print("remote_url=",remote_url)
local_file = f"PhysiCell-{branch}.zip"
data = requests.get(remote_url)
with open(local_file, 'wb')as file:
file.write(data.content)

0 comments on commit 5749e79

Please sign in to comment.