diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0a6d8fcd5..e117651fc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,35 +47,8 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - python-version: ['3.9', '3.10'] - browser: [chromium, firefox, webkit] include: - - os: windows-latest - python-version: '3.11' - browser: chromium - - os: macos-latest - python-version: '3.11' - browser: chromium - - os: ubuntu-latest - python-version: '3.11' - browser: chromium - - os: windows-latest - python-version: '3.12' - browser: chromium - - os: macos-latest - python-version: '3.12' - browser: chromium - - os: ubuntu-latest - python-version: '3.12' - browser: chromium - - os: windows-latest - python-version: '3.13' - browser: chromium - - os: macos-latest - python-version: '3.13' - browser: chromium - - os: ubuntu-latest + - os: windows-11-arm python-version: '3.13' browser: chromium runs-on: ${{ matrix.os }} @@ -85,26 +58,21 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + - uses: actions-rust-lang/setup-rust-toolchain@v1 - name: Install dependencies & browsers run: | - python -m pip install --upgrade pip + python -m pip install --upgrade pip build pip install -r local-requirements.txt pip install -r requirements.txt pip install -e . python -m build --wheel python -m playwright install --with-deps ${{ matrix.browser }} - - name: Common Tests - run: pytest tests/common --browser=${{ matrix.browser }} --timeout 90 - - name: Test Reference count - run: pytest tests/test_reference_count_async.py --browser=${{ matrix.browser }} - - name: Test Wheel Installation - run: pytest tests/test_installation.py --browser=${{ matrix.browser }} - name: Test Sync API if: matrix.os != 'ubuntu-latest' - run: pytest tests/sync --browser=${{ matrix.browser }} --timeout 90 + run: python -m pytest tests/sync --browser=${{ matrix.browser }} --timeout 90 - name: Test Sync API if: matrix.os == 'ubuntu-latest' - run: xvfb-run pytest tests/sync --browser=${{ matrix.browser }} --timeout 90 + run: xvfb-run python -m pytest tests/sync --browser=${{ matrix.browser }} --timeout 90 - name: Test Async API if: matrix.os != 'ubuntu-latest' run: pytest tests/async --browser=${{ matrix.browser }} --timeout 90 diff --git a/setup.py b/setup.py index 6f9c7332d..ed46af1aa 100644 --- a/setup.py +++ b/setup.py @@ -66,6 +66,12 @@ "platform": "win32", "zip_name": "win32_x64", }, + { + "wheel": "win_arm64.whl", + "machine": "arm64", + "platform": "win32", + "zip_name": "win32_arm64", + }, ] if len(sys.argv) == 2 and sys.argv[1] == "--list-wheels":