Skip to content

Commit

Permalink
Create test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
futureweb authored Nov 26, 2024
1 parent 49fb5d1 commit 7f9e615
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7f9e615

Please sign in to comment.