Skip to content

hooks: multiprocessing support for forkserver and spawn #794

hooks: multiprocessing support for forkserver and spawn

hooks: multiprocessing support for forkserver and spawn #794

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
pre_commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
cache: 'pip'
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -v -e .[dev,doc]
- name: Run pre-commit
uses: pre-commit/action@v3.0.0
with:
extra_args: --all-files --hook-stage=manual
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12-dev"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
cache: 'pip'
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [[ ${{ matrix.python-version }} == *-dev ]] ; then
pip install -r requirements.txt --pre
pip install --upgrade wheel
pip install -v -e .[test] --no-build-isolation
else
pip install -v -e .[test]
fi
shell: bash
- name: Generate coverage report
run: python -m pytest --cov="cx_Freeze" --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3