-
Notifications
You must be signed in to change notification settings - Fork 45
45 lines (43 loc) · 1.06 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
45
name: pytest
on: [ push, pull_request ]
jobs:
python:
runs-on: ubuntu-latest
env:
PYTHON_VERSION: ${{ matrix.python }}
IN_CI: 1
strategy:
fail-fast: false
matrix:
python: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ]
steps:
- uses: actions/checkout@v4
- name: Install deps
run: sudo apt update -y && sudo apt install -y cmake redis-server
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
extensions: embed, curl, redis
coverage: none
- uses: actions/setup-python@v5
with:
python-version: "${{ matrix.python }}"
- name: Show machine information
run: |
date
env
uname -a
ulimit -a
python -V
ls -al
pwd
- name: Build
run: |
cmake .
make -j $(nproc)
- name: Run pytest tests
run: |
sudo service redis-server start
pip install pytest
pytest -v tests/