Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mmagnus authored Apr 16, 2024
1 parent 164f277 commit 4ec35f1
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4ec35f1

Please sign in to comment.