generated from amosproj/amos202Xss0Y-projname
-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (48 loc) · 1.45 KB
/
deep-cncf.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
name: Deep CNCF CI
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
license:
if: github.repository == 'amosproj/amos2024ss08-cloud-native-llm' # Don't do this in forks
name: License check
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
- name: Install Python Dependencies
run: pip install -r requirements.txt
- name: Check copyright
id: license_check_report
uses: pilosus/action-pip-license-checker@v2
with:
requirements: "./requirements.txt"
fail: "StrongCopyleft,Error"
- name: Print copyright report
run: echo "${{ steps.license_check_report.outputs.report }}"
build:
needs: license
if: github.repository == 'amosproj/amos2024ss08-cloud-native-llm' # Don't do this in forks
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
- name: Install Python dependencies
run: pip install -r requirements.txt
- name: Run tests
run: python -m unittest discover -p *_test.py