-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.26 KB
/
ci.yml
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
name: 'CI'
permissions:
contents: 'read'
checks: 'write'
on:
push:
branches:
- 'master'
env:
IMAGE_NAME: 'omlish-ci'
jobs:
CI:
runs-on: 'ubuntu-24.04'
steps:
- name: 'Checkout repository'
uses: 'actions/[email protected]'
- name: 'Cancel previous workflows'
uses: 'styfle/[email protected]'
with:
access_token: '${{ github.token }}'
# - uses: 'mxschmitt/[email protected]'
- name: 'Export CI vars'
uses: 'actions/github-script@v7'
env:
export-vars: >
ACTIONS_CACHE_URL
ACTIONS_RUNTIME_TOKEN
github-token: '${{ secrets.GITHUB_TOKEN }}'
with:
script: |
process.env['export-vars'].trim().split(/\s+/).forEach((k) => core.exportVariable(k, process.env[k]))
- name: 'Run CI'
run: >
CI_RUN_OPTS='-v ${{ github.workspace }}:/github/workspace -e PYTEST_JUNIT_XML_PATH'
PYTEST_JUNIT_XML_PATH=/github/workspace/test-results.xml
make ci
- name: 'Report JUnit results'
uses: 'mikepenz/[email protected]'
if: 'always()'
with:
report_paths: '${{ github.workspace }}/test-results.xml'
include_passed: true