mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 02:49:12 +08:00
33 lines
1.0 KiB
YAML
33 lines
1.0 KiB
YAML
name: tox
|
|
on: [push, pull_request]
|
|
permissions:
|
|
contents: read # to fetch code (actions/checkout)
|
|
env:
|
|
# note that some tools care only for the name, not the value
|
|
FORCE_COLOR: 1
|
|
jobs:
|
|
tox:
|
|
name: ${{ matrix.os }} / ${{ matrix.python-version }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest] # All OSes pass except Windows because tests need Unix-only fcntl, grp, pwd, etc.
|
|
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11", "pypy-3.8" ]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Using Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
cache: pip
|
|
cache-dependency-path: requirements_test.txt
|
|
check-latest: true
|
|
- name: Install Dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
python -m pip install tox
|
|
- run: tox -e run-module
|
|
- run: tox -e run-entrypoint
|
|
- run: tox -e py
|