|
1 | | -name: CI |
| 1 | +name: CI PyCompiler_ARK |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
5 | | - branches: [main, develop, develop2] |
| 5 | + branches: [ main ] |
6 | 6 | pull_request: |
7 | | - branches: [main, develop, develop2] |
8 | | - workflow_dispatch: |
| 7 | + branches: [ main ] |
9 | 8 |
|
10 | 9 | jobs: |
11 | 10 | lint: |
12 | | - name: Lint |
13 | 11 | runs-on: ubuntu-latest |
14 | 12 | steps: |
15 | | - - name: Checkout repository |
16 | | - uses: actions/checkout@v4 |
17 | | - |
18 | | - - name: Set up Python 3.12 |
19 | | - uses: actions/setup-python@v5 |
| 13 | + - uses: actions/checkout@v4 |
| 14 | + - uses: actions/setup-python@v5 |
20 | 15 | with: |
21 | | - python-version: "3.12" |
22 | | - cache: pip |
23 | | - cache-dependency-path: requirements.txt |
24 | | - |
25 | | - - name: Upgrade pip |
26 | | - run: python -m pip install --upgrade pip |
27 | | - |
28 | | - - name: Install lint dependencies |
29 | | - run: python -m pip install -r requirements.txt |
30 | | - |
31 | | - - name: Ruff |
32 | | - run: ruff check . |
33 | | - |
34 | | - - name: Black |
35 | | - run: black --check . |
| 16 | + python-version: '3.12' |
| 17 | + - run: pip install ruff black |
| 18 | + - run: ruff check . |
| 19 | + - run: black --check . |
36 | 20 |
|
37 | | - tests: |
38 | | - name: Tests (${{ matrix.os }}, py${{ matrix.python-version }}) |
39 | | - needs: lint |
40 | | - runs-on: ${{ matrix.os }} |
41 | | - strategy: |
42 | | - fail-fast: false |
43 | | - matrix: |
44 | | - os: [ubuntu-latest, windows-latest] |
45 | | - python-version: ["3.12", "3.13"] |
46 | | - env: |
47 | | - QT_QPA_PLATFORM: offscreen |
| 21 | + test: |
| 22 | + runs-on: ubuntu-latest |
48 | 23 | steps: |
49 | | - - name: Checkout repository |
50 | | - uses: actions/checkout@v4 |
51 | | - |
52 | | - - name: Set up Python ${{ matrix.python-version }} |
53 | | - uses: actions/setup-python@v5 |
| 24 | + - uses: actions/checkout@v4 |
| 25 | + - uses: actions/setup-python@v5 |
54 | 26 | with: |
55 | | - python-version: ${{ matrix.python-version }} |
56 | | - cache: pip |
57 | | - cache-dependency-path: requirements.txt |
58 | | - |
59 | | - - name: Upgrade pip |
60 | | - run: python -m pip install --upgrade pip |
61 | | - |
62 | | - - name: Install test dependencies |
63 | | - run: python -m pip install -r requirements.txt |
64 | | - |
65 | | - - name: Run pytest |
66 | | - run: python -m pytest -q tests |
| 27 | + python-version: '3.12' |
| 28 | + - run: pip install -r requirements.txt |
| 29 | + - run: pytest -q |
67 | 30 |
|
68 | 31 | smoke: |
69 | | - name: Smoke (${{ matrix.os }}, py${{ matrix.python-version }}) |
70 | | - needs: tests |
71 | | - runs-on: ${{ matrix.os }} |
72 | | - strategy: |
73 | | - fail-fast: false |
74 | | - matrix: |
75 | | - os: [ubuntu-latest, windows-latest] |
76 | | - python-version: ["3.12", "3.13"] |
77 | | - env: |
78 | | - QT_QPA_PLATFORM: offscreen |
| 32 | + runs-on: ubuntu-latest |
79 | 33 | steps: |
80 | | - - name: Checkout repository |
81 | | - uses: actions/checkout@v4 |
82 | | - |
83 | | - - name: Set up Python ${{ matrix.python-version }} |
84 | | - uses: actions/setup-python@v5 |
| 34 | + - uses: actions/checkout@v4 |
| 35 | + - uses: actions/setup-python@v5 |
85 | 36 | with: |
86 | | - python-version: ${{ matrix.python-version }} |
87 | | - cache: pip |
88 | | - cache-dependency-path: requirements.txt |
89 | | - |
90 | | - - name: Upgrade pip |
91 | | - run: python -m pip install --upgrade pip |
92 | | - |
93 | | - - name: Install runtime dependencies |
94 | | - run: python -m pip install -r requirements.txt |
95 | | - |
96 | | - - name: Smoke CLI help |
97 | | - run: python -m pycompiler_ark --help |
98 | | - |
99 | | - - name: Smoke version |
100 | | - run: python -m pycompiler_ark --version |
101 | | - |
102 | | - - name: Smoke system info |
103 | | - run: python -m pycompiler_ark --info |
104 | | - |
105 | | - - name: Smoke engines dry-run |
106 | | - run: python -m pycompiler_ark engines --dry-run |
107 | | - |
108 | | - - name: Smoke source compilation |
109 | | - run: python -m py_compile pycompiler_ark.py |
| 37 | + python-version: '3.12' |
| 38 | + - run: python pycompiler_ark.py doctor --json |
| 39 | + - run: python pycompiler_ark.py engine list --json |
| 40 | + - run: python pycompiler_ark.py workspace apply . --strict --json |
0 commit comments