diff --git a/.github/workflows/ci_test.yml b/.github/workflows/ci_test.yml new file mode 100644 index 0000000..c6631de --- /dev/null +++ b/.github/workflows/ci_test.yml @@ -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 . diff --git a/.github/workflows/greet.yml b/.github/workflows/greet.yml new file mode 100644 index 0000000..1c9ee2f --- /dev/null +++ b/.github/workflows/greet.yml @@ -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} diff --git a/TCGA_matchmaker/test_example.py b/TCGA_matchmaker/test_example.py new file mode 100644 index 0000000..12ce4b3 --- /dev/null +++ b/TCGA_matchmaker/test_example.py @@ -0,0 +1,2 @@ +def test_add(): + assert 2 + 5 == 7