forked from vg-json-data/sm-json-data
-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (58 loc) · 1.46 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
52
53
54
55
56
57
58
59
60
61
62
63
# workflow name
name: "Sanity Checks"
# fire on
on: [push, pull_request]
#########
# actions
#########
# actions/[email protected]
# actions/[email protected]
# actions/[email protected]
# vg-json-data/sm-json-data/test
jobs:
# Test
test:
name: 🧮
runs-on: ${{ matrix.os-name }}
strategy:
matrix:
os-name: [
ubuntu-latest
]
python-version: [
"3.10"
]
steps:
# checkout commit
- name: ✔️Checkout commit
uses: actions/[email protected]
# install python
- name: 💿Install Python
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
# python version
- name: 🐍Python Version
shell: bash
run: |
python --version
# python modules
- name: 🐍Python Modules
shell: bash
run: |
python -m pip install -r "./resources/app/manifests/pip_requirements.txt"
# Analyze used GitHub Actions
- name: Analyze used GitHub Actions
shell: bash
run: |
python ./resources/ci/common/list_actions.py
# test
- name: ⏱️Call Test
uses: ./.github/actions/test
# upload keywords file
- name: Upload Keywords file
uses: actions/[email protected]
with:
name: keywords
path: ./resources/app/manifests/keywords.json
if: ${{ success() || failure() }}