|
9 | 9 | tags: |
10 | 10 | - 'v*' |
11 | 11 |
|
12 | | - ################################### |
13 | | - ################################### |
14 | | - |
15 | 12 | # A workflow run is made up of one or more jobs that can run sequentially or in parallel |
16 | 13 | jobs: |
17 | | - test-job: |
| 14 | + install_requirements-ubuntu: |
18 | 15 | runs-on: ubuntu-latest |
19 | 16 | strategy: |
20 | | - fail-fast: false |
21 | 17 | matrix: |
22 | | - # The same array lives in test-windows.yml, so make any updates there too. |
23 | | - container_image: ["ubuntu:16.04", "ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04"] |
24 | | -# strategy: |
25 | | -# matrix: |
26 | | -# image_name: |
27 | | -# [ |
28 | | -# ubuntu:22.04, |
29 | | -# ubuntu:20.04, |
30 | | -# ] |
| 18 | + container_image: ["ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04"] |
31 | 19 | container: |
32 | 20 | image: ${{ matrix.container_image }} |
33 | 21 | steps: |
34 | 22 | - uses: actions/checkout@v3 |
35 | | - - name: Test one |
36 | | - run: echo "Hello from this container!" |
37 | | - - name: Test one and a half |
38 | | - run: ls |
39 | | - - name: Pogojni |
40 | | - if: ${{ matrix.container_image == 'ubuntu:16.04' }} |
41 | | - run: echo issa me the old one |
42 | 23 | - name: Set up Python |
43 | 24 | run: apt-get update -qq && apt-get -qq install python3 python3-pip sudo |
44 | | - - name: Test two minus one third |
| 25 | + - name: Install requirements |
45 | 26 | run: cd examples && python3 install_requirements.py |
46 | | - - name: Test two |
47 | | - run: echo "Hello from here too!!!" |
48 | | - - name: Test three |
49 | | - run: cat /etc/*release* |
| 27 | + install_requirements-ubuntu-old: |
| 28 | + runs-on: ubuntu-latest |
| 29 | + container: |
| 30 | + image: ubuntu:16:04 |
| 31 | + steps: |
| 32 | + - uses: actions/checkout@v3 |
| 33 | + - name: Set up Python |
| 34 | + run: apt-get update -qq && apt-get -qq install python3.6 python3.6-pip sudo |
| 35 | + - name: Install requirements |
| 36 | + run: cd examples && python3.6 install_requirements.py |
0 commit comments