|
9 | 9 | build:
|
10 | 10 | strategy:
|
11 | 11 | matrix:
|
12 |
| - python-version: |
13 |
| - - "3.7" |
14 |
| - - "3.8" |
15 |
| - - "3.9" |
16 |
| - - "3.10" |
17 |
| - - "3.11" |
| 12 | + runtime: |
| 13 | + - machine: ubuntu-latest |
| 14 | + python-version: "3.7" |
| 15 | + - machine: ubuntu-latest |
| 16 | + python-version: "3.8" |
| 17 | + - machine: ubuntu-latest |
| 18 | + python-version: "3.9" |
| 19 | + - machine: ubuntu-latest |
| 20 | + python-version: "3.10" |
| 21 | + - machine: ubuntu-latest |
| 22 | + python-version: "3.11" |
18 | 23 | component:
|
19 |
| - - arangodb |
20 |
| - - azurite |
21 |
| - - clickhouse |
22 |
| - - compose |
23 |
| - - core |
24 |
| - - elasticsearch |
25 |
| - - google |
26 |
| - - kafka |
27 |
| - - keycloak |
28 |
| - - localstack |
29 |
| - - meta |
30 |
| - - minio |
31 |
| - - mongodb |
32 |
| - - mssql |
33 |
| - - mysql |
34 |
| - - neo4j |
35 |
| - - nginx |
36 |
| - - opensearch |
37 |
| - - oracle |
38 |
| - - postgres |
39 |
| - - rabbitmq |
40 |
| - - redis |
41 |
| - - selenium |
42 |
| - runs-on: ubuntu-latest |
| 24 | + - arangodb |
| 25 | + - azurite |
| 26 | + - clickhouse |
| 27 | + - compose |
| 28 | + - core |
| 29 | + - elasticsearch |
| 30 | + - google |
| 31 | + - kafka |
| 32 | + - keycloak |
| 33 | + - localstack |
| 34 | + - meta |
| 35 | + - minio |
| 36 | + - mongodb |
| 37 | + - mssql |
| 38 | + - mysql |
| 39 | + - neo4j |
| 40 | + - nginx |
| 41 | + - opensearch |
| 42 | + - oracle |
| 43 | + - postgres |
| 44 | + - rabbitmq |
| 45 | + - redis |
| 46 | + - selenium |
| 47 | + runs-on: ${{ matrix.runtime.machine }} |
43 | 48 | steps:
|
44 | 49 | - uses: actions/checkout@v3
|
45 |
| - - name: Setup python ${{ matrix.python-version }} |
| 50 | + - name: Setup python ${{ matrix.runtime.python-version }} |
46 | 51 | uses: actions/setup-python@v4
|
47 | 52 | with:
|
48 |
| - python-version: ${{ matrix.python-version }} |
| 53 | + python-version: ${{ matrix.runtime.python-version }} |
49 | 54 | cache: pip
|
50 | 55 | cache-dependency-path: ${{ format('requirements/{0}.txt', matrix.python-version) }}
|
51 | 56 | - name: Install Python dependencies
|
52 | 57 | run: |
|
53 | 58 | pip install --upgrade pip
|
54 |
| - pip install -r requirements/${{ matrix.python-version }}.txt |
| 59 | + pip install -r requirements/${{ matrix.runtime.machine }}-${{ matrix.runtime.python-version }}.txt |
55 | 60 | - name: Run docker diagnostics
|
56 | 61 | if: matrix.component == 'core'
|
57 | 62 | run: |
|
|
78 | 83 | github.event_name == 'push'
|
79 | 84 | && github.ref == 'refs/heads/main'
|
80 | 85 | && github.repository_owner == 'testcontainers'
|
81 |
| - && matrix.python-version == '3.10' |
| 86 | + && matrix.runtime.python-version == '3.10' |
| 87 | + && matrix.runtime.machine == 'ubuntu-latest' |
82 | 88 | env:
|
83 | 89 | TWINE_USERNAME: __token__
|
84 | 90 | TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
|
|
0 commit comments