From 4ec35f1638e4918e8713620645d8e04d94de0016 Mon Sep 17 00:00:00 2001 From: Marcin Magnus Date: Tue, 16 Apr 2024 14:27:54 -0400 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..5a30c0345 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,30 @@ +name: Python Package Installation and Test Script Execution + +on: [push] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.8' # You can specify any version you need + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then + pip install -r requirements.txt + else + echo "requirements.txt does not exist" + fi + + - name: Run test script + run: | + chmod +x ./test.sh + ./test.sh