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