-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (72 loc) · 2.02 KB
/
Copy pathci.yml
File metadata and controls
87 lines (72 loc) · 2.02 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: CI and Pages
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-pages-${{ github.ref }}
cancel-in-progress: true
jobs:
verify:
name: Verify Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.13"]
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: |
requirements.txt
requirements-dev.txt
- name: Set up Node.js for browser interoperability tests
uses: actions/setup-node@v6
with:
node-version: "24"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements-dev.txt
- name: Verify dependencies
run: python -m pip check
- name: Run test suite
run: python -m pytest test_secure_vault.py test_release_workflow.py test_web_ui.py -v
- name: Build package
run: python -m build
deploy-pages:
name: Deploy browser UI to GitHub Pages
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: verify
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Configure Pages
uses: actions/configure-pages@v5
- name: Prepare static site
run: |
mkdir -p _site
cp index.html _site/index.html
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v4
with:
path: _site
- name: Deploy Pages
id: deployment
uses: actions/deploy-pages@v4