forked from luxonis/depthai-python
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 1.3 KB
/
install_requirements.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
name: Test requirements installation
on:
workflow_dispatch:
push:
paths:
- 'docs/source/_static/install_dependencies.sh'
- 'examples/install_requirements.py'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
install_dependencies:
runs-on: ubuntu-latest
strategy:
matrix:
container_image: ["fedora:34", "fedora:35", "fedora:36", "ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04"]
container:
image: ${{ matrix.container_image }}
steps:
- uses: actions/checkout@v3
- name: Install sudo
if: startsWith(matrix.container_image, 'fedora') == true
run: yum update -y && yum install -y python3 python3-pip sudo
- name: Install sudo
if: startsWith(matrix.container_image, 'ubuntu') == true
run: apt-get update -qq && apt-get -qq install sudo lsb-release
- name: Install dependencies
run: |
ln -snf /usr/share/zoneinfo/UTC /etc/localtime && echo UTC > /etc/timezone
sed '/udevadm control --reload-rules && sudo udevadm trigger/d' docs/source/_static/install_dependencies.sh > tmp_script.sh
bash tmp_script.sh
- name: Install example requirements
run: |
python3 examples/install_requirements.py