pkg: add missing init file in bots #87
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: Build | |
| on: | |
| push: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| # Ubuntu 22.04, 24.04 and the latest Python version | |
| python-version: ["3.10", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install setuptools for pkg_resources for Python 3.12+ | |
| if: ${{ contains(fromJSON('["3.12", "3.13"]'), matrix.python-version) }} | |
| run: pip install 'setuptools<82' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install flake8 pytest | |
| - name: Build package | |
| run: | | |
| pip install . | |
| - name: Test with pytest | |
| run: pytest | |
| env: | |
| PYTHONPATH: . |