build: drop the License :: classifier now that license is a PEP 639 expression #34
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| quality: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| - run: python -m pip install "pisama-core @ git+https://github.com/Pisama-AI/pisama-core.git@v1.8.2" | |
| - run: python -m pip install -e ".[dev,mcp,auto]" | |
| - run: ruff check src tests | |
| - run: mypy src/pisama | |
| - run: pytest -q --cov=pisama --cov-report=term --cov-fail-under=60 | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: pip | |
| - run: python -m pip install "pisama-core @ git+https://github.com/Pisama-AI/pisama-core.git@v1.8.2" | |
| - run: python -m pip install -e ".[dev,mcp,auto]" | |
| - run: pytest -q | |
| distribution: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: "3.13" | |
| cache: pip | |
| - run: python -m pip install build twine | |
| - run: python -m build | |
| - run: python -m twine check dist/* | |
| - name: Test wheel in a clean environment | |
| run: | | |
| python -m venv /tmp/pisama-wheel-smoke | |
| /tmp/pisama-wheel-smoke/bin/python -m pip install "pisama-core @ git+https://github.com/Pisama-AI/pisama-core.git@v1.8.2" | |
| /tmp/pisama-wheel-smoke/bin/python -m pip install "dist/pisama-"*.whl | |
| /tmp/pisama-wheel-smoke/bin/pisama --help | |
| /tmp/pisama-wheel-smoke/bin/python -c "import pisama; assert pisama.__version__" |