Skip to content
29 changes: 29 additions & 0 deletions .github/workflows/ci_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on:
push:
branches:
- W24
pull_request:
branches:
- W24

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
if [ -f requirements.txt ]; then
pip install -r requirements.txt
fi
- name: Test with pytest
run: |
pytest .
32 changes: 32 additions & 0 deletions .github/workflows/greet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# name of the workflow
name: greet

# when the workflow should run
on:
push:
branches:
- W24
pull_request:
branches:
- W24

# independent jobs in the workflow
jobs:
# this workflow just has one job called "greet"
greet:
# the operating system to use for this workflow
runs-on: ubuntu-latest
# list of steps in the workflow
steps:
# use an action provided by github to checkout the repo
- uses: actions/checkout@v3
# a custom step that runs a couple shell commands
- name: List
run: |
echo "listing files in the design_documents directory"
ls design_documents
# a custom step that runs R code
- name: Greet
run: print("Hello, world!")
# Replace `shell: Rscript {0}` with `shell: python {0}` to run Python code instead!
shell: python {0}
2 changes: 2 additions & 0 deletions TCGA_matchmaker/test_example.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test_add():
assert 2 + 5 == 7