Merge pull request #10 from innobraingmbh/feat/pyman #59
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: run-tests | |
on: | |
push: | |
paths: | |
- '**.php' | |
- '.github/workflows/run-tests.yml' | |
- 'phpunit.xml.dist' | |
- 'composer.json' | |
- 'composer.lock' | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 5 | |
strategy: | |
fail-fast: true | |
matrix: | |
os: [ubuntu-latest] | |
php: [8.3] | |
laravel: [11.*] | |
stability: [prefer-lowest, prefer-stable] | |
include: | |
- laravel: 11.* | |
testbench: 9.* | |
carbon: ^2.63 | |
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo | |
coverage: none | |
- name: Setup problem matchers | |
run: | | |
echo "::add-matcher::${{ runner.tool_cache }}/php.json" | |
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | |
- name: Install dependencies | |
run: | | |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.os == 'windows-latest' && '^^^' || '' }}${{ matrix.carbon }}" --no-interaction --no-update | |
composer update --${{ matrix.stability }} --prefer-dist --no-interaction | |
- name: List Installed Dependencies | |
run: composer show -D | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.13 | |
- name: Install markitdown | |
run: pipx install markitdown | |
- uses: FedericoCarboni/setup-ffmpeg@v3 | |
id: setup-ffmpeg | |
with: | |
# A specific version to download, may also be "release" or a specific version | |
# like "6.1.0". At the moment semver specifiers (i.e. >=6.1.0) are supported | |
# only on Windows, on other platforms they are allowed but version is matched | |
# exactly regardless. | |
ffmpeg-version: release | |
# Target architecture of the ffmpeg executable to install. Defaults to the | |
# system architecture. Only x64 and arm64 are supported (arm64 only on Linux). | |
architecture: '' | |
# Linking type of the binaries. Use "shared" to download shared binaries and | |
# "static" for statically linked ones. Shared builds are currently only available | |
# for windows releases. Defaults to "static" | |
linking-type: static | |
- name: venv setup | |
run: vendor/bin/testbench markitdown:install | |
- name: Execute tests | |
run: vendor/bin/pest --ci |