|
1 | | -name: Quality checks |
| 1 | +name: CI - Quality Checks |
2 | 2 |
|
| 3 | +### TODO: Update this flow from edx-platfrom branch |
3 | 4 | on: |
4 | 5 | pull_request: |
5 | | - push: |
| 6 | + types: [ opened, synchronize, reopened ] |
6 | 7 | branches: |
| 8 | + - develop |
7 | 9 | - master |
8 | | - - open-release/lilac.master |
9 | | - |
10 | 10 | jobs: |
11 | | - run_tests: |
12 | | - name: Quality Others |
13 | | - runs-on: ${{ matrix.os }} |
14 | | - strategy: |
15 | | - matrix: |
16 | | - os: [ubuntu-24.04] |
17 | | - python-version: |
18 | | - - "3.11" |
19 | | - node-version: [20] |
20 | | - |
| 11 | + quality-checks: |
| 12 | + name: Quality Checks |
| 13 | + runs-on: ubuntu-latest |
21 | 14 | steps: |
22 | | - - uses: actions/checkout@v4 |
23 | | - with: |
24 | | - fetch-depth: 2 |
25 | | - |
26 | | - - name: Fetch base branch for comparison |
27 | | - run: git fetch --depth=1 origin ${{ github.base_ref }} |
28 | | - |
29 | | - - name: Install Required System Packages |
30 | | - run: sudo apt-get update && sudo apt-get install libxmlsec1-dev |
31 | | - |
32 | | - - name: Setup Python |
33 | | - uses: actions/setup-python@v5 |
34 | | - with: |
35 | | - python-version: ${{ matrix.python-version }} |
36 | | - |
37 | | - - name: Setup Node |
38 | | - uses: actions/setup-node@v4 |
39 | | - with: |
40 | | - node-version: ${{ matrix.node-version }} |
41 | | - |
42 | | - - name: Setup npm |
43 | | - run: npm i -g npm@8.5.x |
44 | | - |
45 | | - - name: Get pip cache dir |
46 | | - id: pip-cache-dir |
47 | | - run: | |
48 | | - echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT |
49 | | -
|
50 | | - - name: Cache pip dependencies |
51 | | - id: cache-dependencies |
52 | | - uses: actions/cache@v4 |
53 | | - with: |
54 | | - path: ${{ steps.pip-cache-dir.outputs.dir }} |
55 | | - key: ${{ runner.os }}-pip-${{ hashFiles('requirements/edx/testing.txt') }} |
56 | | - restore-keys: ${{ runner.os }}-pip- |
57 | | - |
58 | | - - name: Install Required Python Dependencies |
59 | | - env: |
60 | | - PIP_SRC: ${{ runner.temp }} |
61 | | - run: | |
62 | | - make test-requirements |
63 | | -
|
64 | | - - name: Install npm |
65 | | - env: |
66 | | - PIP_SRC: ${{ runner.temp }} |
67 | | - run: npm ci |
68 | | - |
69 | | - - name: Install python packages |
70 | | - env: |
71 | | - PIP_SRC: ${{ runner.temp }} |
72 | | - run: | |
73 | | - pip install -e . |
74 | | -
|
75 | | - - name: Run Quality Tests |
76 | | - env: |
77 | | - PIP_SRC: ${{ runner.temp }} |
78 | | - TARGET_BRANCH: ${{ github.base_ref }} |
79 | | - run: | |
80 | | - make pycodestyle |
81 | | - make xsslint |
82 | | - make pii_check |
83 | | - make check_keywords |
84 | | -
|
85 | | - - name: Save Job Artifacts |
86 | | - if: always() |
87 | | - uses: actions/upload-artifact@v4 |
88 | | - with: |
89 | | - name: Build-Artifacts |
90 | | - path: | |
91 | | - **/reports/**/* |
92 | | - test_root/log/**/*.log |
93 | | - *.log |
94 | | - overwrite: true |
| 15 | + - name: Dummy Test |
| 16 | + run: echo 'Add quality checks here' |
0 commit comments