|
6 | 6 | - main |
7 | 7 |
|
8 | 8 | jobs: |
| 9 | + tests: |
| 10 | + strategy: |
| 11 | + matrix: |
| 12 | + python: ["3.10", "3.11", "3.12", "3.13"] |
| 13 | + uses: ./.github/workflows/testing.yml |
| 14 | + with: |
| 15 | + python: ${{ matrix.python }} |
| 16 | + |
| 17 | + ui-tests: |
| 18 | + uses: ./.github/workflows/testing-ui.yml |
| 19 | + |
9 | 20 | quality-checks: |
10 | 21 | runs-on: ubuntu-latest |
11 | 22 | strategy: |
@@ -115,82 +126,8 @@ jobs: |
115 | 126 | - name: Run pre-commit checks |
116 | 127 | run: npx husky run pre-commit |
117 | 128 |
|
118 | | - unit-tests: |
119 | | - runs-on: ubuntu-latest |
120 | | - strategy: |
121 | | - matrix: |
122 | | - python: ["3.10", "3.13"] |
123 | | - steps: |
124 | | - - uses: actions/checkout@v4 |
125 | | - - name: Set up Python |
126 | | - uses: actions/setup-python@v5 |
127 | | - with: |
128 | | - python-version: ${{ matrix.python }} |
129 | | - - name: Install dependencies |
130 | | - run: | |
131 | | - curl -sSL https://pdm-project.org/install-pdm.py | python3 - |
132 | | - pip install tox tox-pdm |
133 | | - - name: Run unit tests |
134 | | - run: tox -e test-unit |
135 | | - |
136 | | - ui-unit-tests: |
137 | | - permissions: |
138 | | - contents: "read" |
139 | | - runs-on: ubuntu-latest |
140 | | - steps: |
141 | | - - name: Check out code |
142 | | - uses: actions/checkout@v3 |
143 | | - |
144 | | - - name: Set up Node.js 22 |
145 | | - uses: actions/setup-node@v4 |
146 | | - with: |
147 | | - node-version: '22' |
148 | | - |
149 | | - - name: Install dependencies |
150 | | - run: npm ci |
151 | | - |
152 | | - - name: Run unit tests |
153 | | - run: npm run test:unit |
154 | | - |
155 | | - integration-tests: |
156 | | - runs-on: ubuntu-latest |
157 | | - strategy: |
158 | | - matrix: |
159 | | - python: ["3.10", "3.13"] |
160 | | - steps: |
161 | | - - uses: actions/checkout@v4 |
162 | | - - name: Set up Python |
163 | | - uses: actions/setup-python@v5 |
164 | | - with: |
165 | | - python-version: ${{ matrix.python }} |
166 | | - - name: Install dependencies |
167 | | - run: | |
168 | | - curl -sSL https://pdm-project.org/install-pdm.py | python3 - |
169 | | - pip install tox tox-pdm |
170 | | - - name: Run integration tests |
171 | | - run: tox -e test-integration -- -m smoke |
172 | | - |
173 | | - ui-integration-tests: |
174 | | - permissions: |
175 | | - contents: "read" |
176 | | - runs-on: ubuntu-latest |
177 | | - steps: |
178 | | - - name: Check out code |
179 | | - uses: actions/checkout@v3 |
180 | | - |
181 | | - - name: Set up Node.js 22 |
182 | | - uses: actions/setup-node@v4 |
183 | | - with: |
184 | | - node-version: '22' |
185 | | - |
186 | | - - name: Install dependencies |
187 | | - run: npm ci |
188 | | - |
189 | | - - name: Run integration tests |
190 | | - run: npm run test:integration |
191 | | - |
192 | 129 | deploy-ui-build: |
193 | | - needs: [ui-quality-checks, ui-precommit-checks, ui-unit-tests, ui-type-checks, ui-integration-tests] |
| 130 | + needs: [ui-quality-checks, ui-precommit-checks, ui-tests] |
194 | 131 | permissions: |
195 | 132 | contents: write |
196 | 133 | runs-on: ubuntu-latest |
|
0 commit comments