Bump version to 0.2.3 #35
This file contains hidden or 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: test | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| pytest-modern: | |
| name: pytest (Python ${{ matrix.python-version }}) | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: | |
| - "3.7" | |
| - "3.8" | |
| - "3.10" | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Sync dependencies | |
| run: uv sync --dev | |
| - name: Run pytest | |
| run: uv run pytest | |
| pytest-py36: | |
| name: pytest (Python 3.6) | |
| runs-on: ubuntu-22.04 | |
| container: | |
| image: python:3.6.15-slim-bullseye | |
| steps: | |
| - name: Install system dependencies | |
| run: | | |
| apt-get update | |
| apt-get install -y --no-install-recommends git nodejs npm | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Mark workspace as safe for git | |
| run: git config --global --add safe.directory "$PWD" | |
| - name: Show runtime versions | |
| run: | | |
| python --version | |
| pip --version | |
| git --version | |
| node --version | |
| - name: Install Python 3.6 compatibility dependencies | |
| run: | | |
| python -m pip install -i https://pypi.org/simple \ | |
| "dataclasses>=0.8" \ | |
| "typing_extensions>=4.1.1,<4.2" \ | |
| "importlib_metadata>=4.8.3,<5" \ | |
| "tomli>=1.2.3,<2" \ | |
| "requests>=2.27.1" \ | |
| "prompt-toolkit>=3.0.36,<3.1" \ | |
| "loguru>=0.7.3,<1" \ | |
| "cryptography>=40.0.2,<41" \ | |
| "fastapi>=0.83,<0.84" \ | |
| "uvicorn>=0.16,<0.17" \ | |
| "pytest>=6.2.5,<7" \ | |
| "pytest-asyncio>=0.16,<0.17" | |
| - name: Run Python 3.6 pytest | |
| env: | |
| PYTHONPATH: ${{ github.workspace }} | |
| run: python -m pytest -c /dev/null |