From 26554aa3386853d21bc28edd5ef381570a410650 Mon Sep 17 00:00:00 2001 From: Tyler Buffington Date: Fri, 16 Aug 2024 14:40:14 -0500 Subject: [PATCH 1/2] Added initial github action --- .github/workflows/run_tests.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/run_tests.yml diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml new file mode 100644 index 0000000..f7f5a68 --- /dev/null +++ b/.github/workflows/run_tests.yml @@ -0,0 +1,29 @@ +name: Run Pytest + +on: + pull_request: + branches: + - main + workflow_dispatch: + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt; fi + + - name: Run Pytest + run: | + pytest tests \ No newline at end of file From 5ee5799e0501b0355e7c7059c04d79f90ab294e0 Mon Sep 17 00:00:00 2001 From: Tyler Buffington Date: Fri, 16 Aug 2024 14:41:42 -0500 Subject: [PATCH 2/2] Fixed typo --- .github/workflows/run_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index f7f5a68..0692c22 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -22,7 +22,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r requirements.txt; fi + pip install -r requirements.txt - name: Run Pytest run: |