forked from oppia/oppia
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (48 loc) · 1.69 KB
/
check_test_suites_to_run.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
name: Checks CI Test Suites To Run
on:
workflow_call:
outputs:
test_suites_to_run:
value: ${{ jobs.check_test_suites_to_run.outputs.test_suites_to_run }}
jobs:
check_test_suites_to_run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
outputs:
test_suites_to_run: ${{ steps.check_test_suites_to_run.outputs.test_suites_to_run }}
env:
SHOULD_OUTPUT_ALL_TESTS: ${{ github.event_name != 'pull_request' || vars.RUN_SUITES_ON_CHANGED_FILES == 'false' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Merge develop branch into the current branch
uses: ./.github/actions/merge
- name: Setup Python 3.8 with pip cache
uses: actions/setup-python@v4
with:
python-version: '3.8.15'
architecture: 'x64'
cache: 'pip'
cache-dependency-path: |
requirements.in
requirements.txt
requirements_dev.in
requirements_dev.txt
- name: Install Oppia dependencies
uses: ./.github/actions/install-oppia-dependencies
- name: Check test suites to run
id: check_test_suites_to_run
run: >
python -m scripts.check_ci_test_suites_to_run
--github_head_ref="HEAD"
--github_base_ref="origin/${{ github.event.pull_request.base.ref }}"
${{ env.SHOULD_OUTPUT_ALL_TESTS == 'true' && '--output_all_test_suites' || '' }}
- name: Upload root files mapping as a github artifact
uses: actions/upload-artifact@v3
with:
name: root-files-mapping
path: root-files-mapping.json