diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6b0875a..8e11319 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,11 +2,21 @@ name: ci-python on: [pull_request, push] jobs: py: - runs-on: ubuntu-latest + 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' - - run: python -m pip install -e . || true - - run: python -m pytest || true + - 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