From e03562d542c9483b65a24d4ec430d9b990554408 Mon Sep 17 00:00:00 2001 From: Shizuka Date: Tue, 3 Sep 2024 14:17:10 -0700 Subject: [PATCH 1/3] Initial implementation of github actions for testing purposes --- .github/workflows/python-app.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/python-app.yml diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml new file mode 100644 index 0000000..a7e7498 --- /dev/null +++ b/.github/workflows/python-app.yml @@ -0,0 +1,30 @@ +name: Python Application + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test: + runs-on: macos-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.x" # Replace with your specific Python version if needed + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Run tests + working-directory: back + run: | + pytest tests From fb009d3ea0c4bbde7f40fafa57a17905de560955 Mon Sep 17 00:00:00 2001 From: Shizuka Date: Tue, 3 Sep 2024 14:19:45 -0700 Subject: [PATCH 2/3] Edited directory of requirements.txt --- .github/workflows/python-app.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index a7e7498..77281d6 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -20,6 +20,7 @@ jobs: python-version: "3.x" # Replace with your specific Python version if needed - name: Install dependencies + working-directory: back run: | python -m pip install --upgrade pip pip install -r requirements.txt From 55196a550b0796a435022677cf2507eec1b39cb0 Mon Sep 17 00:00:00 2001 From: Shizuka Date: Tue, 3 Sep 2024 14:33:11 -0700 Subject: [PATCH 3/3] Updated requirements --- back/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/requirements.txt b/back/requirements.txt index 2751e13..3863162 100644 --- a/back/requirements.txt +++ b/back/requirements.txt @@ -9,4 +9,4 @@ python-dotenv==1.0.1 scikit-learn==1.5.1 werkzeug==3.0.4 gdown==5.2.0 - +pytest==8.3.2