-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (35 loc) · 1.23 KB
/
Copy pathtests.yml
File metadata and controls
43 lines (35 loc) · 1.23 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: tests
on:
push:
branches: [main, "feat/**", "fix/**"]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Configure git identity
# `_commit_candidate` injects per-commit identity, but a couple of
# tests still call `git commit` against a fresh tempdir directly.
run: |
git config --global user.email "ci@evolution-kernel.local"
git config --global user.name "evolution-kernel-ci"
- name: Install firejail (required for the sandbox E2E test)
run: |
sudo apt-get update
sudo apt-get install -y firejail
- name: Install package (PyYAML is the only runtime dep)
run: python -m pip install -e .
- name: Run unit + acceptance + scope tests
run: python -m unittest discover -s tests -v
- name: Run token-ignition golden cases
run: python adapters/token_ignition/evaluate_golden_cases.py