-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathtest_package_management_scripts.yaml
More file actions
52 lines (44 loc) · 1.53 KB
/
test_package_management_scripts.yaml
File metadata and controls
52 lines (44 loc) · 1.53 KB
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
name: Test package management scripts
on:
push:
branches:
- master
pull_request:
jobs:
test_package_management_scripts:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- test_script: "bash run_tests.sh"
working_dir: "ext/scripts/tests/install_scripts"
name: "Test install scripts dry-run"
install_dependencies: false
- test_script: "bash test_scripts_in_docker.sh"
working_dir: "ext/scripts/tests/"
name: "Test install scripts in docker container"
install_dependencies: false
- test_script: "bash test_python_scripts_in_slim_docker.sh"
working_dir: "ext/scripts/tests/"
name: "Test PIP install scripts in slim docker container"
install_dependencies: false
- test_script: "bash run_tests.sh "
working_dir: "ext/scripts/tests/list_installed_scripts"
name: "Test list installed scripts"
install_dependencies: true
steps:
- uses: actions/checkout@v6
- name: Install Python
uses: actions/setup-python@v5
if: matrix.install_dependencies == true
with:
python-version: "3.10"
- name: Install R
if: matrix.install_dependencies == true
uses: r-lib/actions/setup-r@v2
- name: Init submodules
run: git submodule update --init --recursive
- name: ${{ matrix.name }}
run: ${{ matrix.test_script }}
working-directory: ${{ matrix.working_dir }}