Merge pull request #29 from Enapter/copilot/implement-sites-api-client #285
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: | |
| jobs: | |
| run_checks: | |
| name: "Run Checks (Python ${{ matrix.python }})" | |
| timeout-minutes: 10 | |
| runs-on: "ubuntu-latest" | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python: ["3.11", "3.12", "3.13", "3.14"] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Setup python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: "${{ matrix.python }}" | |
| - name: Install pipenv | |
| run: make get-pipenv | |
| - name: Install dependencies | |
| run: make install-deps | |
| - name: Run checks | |
| run: make check | |
| upload_to_pypi: | |
| name: "Upload To PyPI" | |
| needs: run_checks | |
| runs-on: "ubuntu-latest" | |
| if: ${{ startsWith(github.ref, 'refs/tags/v') }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Setup python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: "3.11" | |
| - name: Install pipenv | |
| run: make get-pipenv | |
| - name: Install dependencies | |
| run: make install-deps | |
| - name: Publish to PyPI | |
| run: make upload-to-pypi | |
| env: | |
| PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} |