forked from oppia/oppia
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (50 loc) · 1.65 KB
/
lint.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: Lint Checks
on:
merge_group:
types: [checks_requested]
push:
branches:
- develop
- release-*
pull_request:
branches:
- develop
- release-*
jobs:
lint:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
shard: ['other']
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Python 3.8 with pip cache
uses: actions/setup-python@v4
with:
python-version: '3.8.15'
architecture: 'x64'
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Merge develop branch into the current branch
uses: ./.github/actions/merge
- name: Initialze Containers
run: |
make build
sudo make run-devserver
make stop
- name: Third Party Size Check
if: startsWith(github.head_ref, 'update-changelog-for-release') == false
run: make run_tests.third_party_size_check
- name: Run Lint Checks
if: startsWith(github.head_ref, 'update-changelog-for-release') == false
run: make run_tests.lint PYTHON_ARGS="--shard ${{ matrix.shard }} --verbose"
- name: Report failure if failed on oppia/oppia develop branch
if: ${{ failure() && github.event_name == 'push' && github.repository == 'oppia/oppia' && github.ref == 'refs/heads/develop'}}
uses: ./.github/actions/send-webhook-notification
with:
message: "Lint checks failed on the upstream develop branch."
webhook-url: ${{ secrets.BUILD_FAILURE_ROOM_WEBHOOK_URL }}