refactor: split PyBoxManager and AsyncPyBoxManager #146
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . |