-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1000 Bytes
/
test.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
name: 1. Basic usage
on: push
jobs:
# Setup matrix
setup-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.setup-matrix.outputs.matrix }}
steps:
- id: setup-matrix
uses: druzsan/setup-matrix@feature/use-python-dockerfile
with:
matrix: |
os: [ubuntu-latest, macos-latest]
python-version: [3.8, 3.10, 3.12]
include:
- os: windows-latest
python-version: 3.8
- os: windows-latest
python-version: 3.10
- {}
exclude:
- os: macos-latest
python-version: 3.8
# Setup python and print version
setup-python:
needs: setup-matrix
strategy:
matrix: ${{ fromJson(needs.setup-matrix.outputs.matrix) }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-python@v5
with:
python-version: '${{ matrix.python-version }}'
- run: python --version