From 7f9e6156a6835f789a5f7be68138ef85e409b6a1 Mon Sep 17 00:00:00 2001 From: Andreas Schnederle-Wagner Date: Tue, 26 Nov 2024 16:13:10 +0100 Subject: [PATCH] Create test.yml --- .github/workflows/test.yml | 45 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..36f1005 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,45 @@ +name: PHP Script Tests + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Set up PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '7.4' # Specify your PHP version + extensions: bcmath, gmp + coverage: none + tools: none + + - name: Verify PHP Installation + run: | + php -v + php -m | grep -i -E 'bcmath|gmp' + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.6' # Specify your Python version + + - name: Install Python Dependencies + run: | + python3 -m pip install --upgrade pip + # If your Python script requires additional packages, install them here + # Example: + # python3 -m pip install -r requirements.txt + + - name: Run Test Script + run: | + chmod +x tests/test_diff.sh + ./tests/test_diff.sh