Merge pull request #4 from pocketstation-io/ci/add-windows-matrix #13
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-python | |
| on: [pull_request, push] | |
| jobs: | |
| py: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Upgrade pip | |
| run: python -m pip install --upgrade pip | |
| - name: Install package (non-Windows) | |
| if: runner.os != 'Windows' | |
| run: python -m pip install -e ".[dev]" | |
| - name: Install package (Windows) | |
| if: runner.os == 'Windows' | |
| run: python -m pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org -e ".[dev]" | |
| - run: python -m pytest |