mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-01 18:21:30 +08:00
- Docker integration: Install pytest-cov to support coverage addopts - FreeBSD: Install pytest-asyncio for ASGI async test support
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
name: FreeBSD
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
FORCE_COLOR: 1
|
|
|
|
jobs:
|
|
test:
|
|
name: FreeBSD ${{ matrix.freebsd-version }} / Python ${{ matrix.python-version }}
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- freebsd-version: '14.2'
|
|
python-version: '3.12'
|
|
python-pkg: 'python312 py312-sqlite3'
|
|
- freebsd-version: '14.2'
|
|
python-version: '3.13'
|
|
python-pkg: 'python313 py313-sqlite3'
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- name: Test on FreeBSD
|
|
uses: vmactions/freebsd-vm@v1
|
|
with:
|
|
release: ${{ matrix.freebsd-version }}
|
|
usesh: true
|
|
prepare: |
|
|
pkg install -y ${{ matrix.python-pkg }}
|
|
run: |
|
|
python${{ matrix.python-version }} -m venv venv
|
|
. venv/bin/activate
|
|
pip install --upgrade pip
|
|
pip install pytest pytest-cov pytest-asyncio coverage
|
|
pip install -e .
|
|
pytest --cov=gunicorn -v tests/ \
|
|
--ignore=tests/workers/test_ggevent.py \
|
|
--ignore=tests/workers/test_geventlet.py
|