Skip to content

Create requirements.txt #3

Create requirements.txt

Create requirements.txt #3

Workflow file for this run

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