-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (55 loc) · 1.7 KB
/
Copy pathci.yml
File metadata and controls
68 lines (55 loc) · 1.7 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: CI Pipeline
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
test:
name: Run Tests (${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y libcairo2-dev pkg-config
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Run pytest
run: python -m pytest -v --tb=short
test-vscode-bundle:
name: Test VSCode Bundle (CD)
runs-on: windows-latest
needs: test
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install Extension dependencies
working-directory: vscode-extension
run: npm install
- name: Compile TypeScript
working-directory: vscode-extension
run: npx tsc -p ./
- name: Test Bundle Generation & Smoke Test
shell: pwsh
run: |
./vscode-extension/scripts/build_bundle.ps1 -pythonVersion "3.12.9"
- name: Test VSIX Packaging
working-directory: vscode-extension
shell: pwsh
run: |
npm install -g @vscode/vsce@3.2.2
vsce package --target win32-x64 --no-dependencies --allow-star-activation --out test-bundle.vsix
Remove-Item test-bundle.vsix -ErrorAction SilentlyContinue