-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
43 lines (33 loc) · 1.06 KB
/
typing-tests.yml
File metadata and controls
43 lines (33 loc) · 1.06 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
name: Typing Tests
on:
push: # Runs for pushes to all branches
pull_request: # Runs for all pull request events (e.g., opened, synchronize)
jobs:
test-typing:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install Node.js dependencies
run: npm ci
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install Python dependencies including project in editable mode with extras
run: |
python -m pip install --upgrade pip wheel
pip install "setuptools<80.0.0"
pip install -e .[ci,testing,dev]
- name: Build project (JS/CSS, etc.)
run: npm run build
- name: Build/Setup test components
run: npm run setup-tests.py
- name: Run typing tests
run: pytest tests/compliance/test_typing.py