Skip to content

refactor: split PyBoxManager and AsyncPyBoxManager #146

refactor: split PyBoxManager and AsyncPyBoxManager

refactor: split PyBoxManager and AsyncPyBoxManager #146

Workflow file for this run

name: "CI"
on:
push:
branches: [ main ]
paths:
- "src/**"
- "tests/**"
- "Makefile"
- "pyproject.toml"
- ".github/workflows/ci.yml"
pull_request:
branches: [ main ]
paths:
- "src/**"
- "tests/**"
- "Makefile"
- "pyproject.toml"
- ".github/workflows/ci.yml"
jobs:
run:
name: "tests & coverage"
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set up pip cache
if: runner.os == 'Linux'
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
restore-keys: ${{ runner.os }}-pip-
- name: Install hatch
run: |
pipx install hatch
- name: Lint
run: make lint
- name: Tests
run: make test
install-ubuntu:
name: "install on ubuntu"
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# <https://github.com/actions/setup-python/tree/v5/?tab=readme-ov-file#caching-packages-dependencies>
cache: 'pip'
- name: Install pybox
run: |
pip install -e .
install-win:
name: "install on windows"
runs-on: windows-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# <https://github.com/actions/setup-python/tree/v5/?tab=readme-ov-file#caching-packages-dependencies>
cache: 'pip'
- name: Install pybox
run: |
pip install -e .