-
Notifications
You must be signed in to change notification settings - Fork 45
44 lines (42 loc) · 1.05 KB
/
pytest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: pytest
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
env:
PHP_VERSION: ${{ matrix.php }}
strategy:
fail-fast: false
matrix:
php: [ '8.1', '8.2', '8.3' ]
steps:
- uses: actions/checkout@v4
- name: Install deps
run: sudo apt update -y && sudo apt install -y libcurl4-openssl-dev php-curl libc-ares-dev python3 python3-dev
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
coverage: none
- name: Show machine information
run: |
date
env
uname -a
ulimit -a
php -v
php --ini
ls -al
sudo ldconfig
ldconfig -p
pwd
php-config
echo "`git log -20 --pretty --oneline`"
echo "`git log -10 --stat --pretty --oneline`"
- name: Build
run: |
cmake .
make -j $(nproc)
- name: Run pytest tests
run: |
pytest -v tests/