-
Notifications
You must be signed in to change notification settings - Fork 283
50 lines (40 loc) · 1.32 KB
/
ci-windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: CI (Windows)
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os: [windows-latest]
python-url: ['https://www.python.org/ftp/python/3.10.5/python-3.10.5-amd64.exe']
experimental: [true]
runs-on: ${{ matrix.os }}
steps:
- name: Cancel previous
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v4
with:
submodules: true
- name: Download Python
run: Invoke-WebRequest -Uri ${{ matrix.python-url }} -OutFile python-installer.exe
- name: Install Python
run: .\python-installer /quiet /passive Include_debug=1 PrependPath=1 TargetDir=C:\Python | more
- uses: ilammy/msvc-dev-cmd@v1
# We have to put continue-on-error at the step level rather than the job
# level because the UI is broken:
# https://github.com/github-community/community/discussions/15452.
- name: Test
run: |
set LIB=C:\Python\Libs;%LIB%
set TYPESHED_HOME=%cd%\typeshed
set PATH=C:\Python;C:\Python\Scripts;%PATH%
pip install -r requirements.txt
python build_scripts/ci_script.py
shell: cmd
continue-on-error: ${{ matrix.experimental }}