-
Notifications
You must be signed in to change notification settings - Fork 102
34 lines (31 loc) · 1.13 KB
/
37-continue-on-error-matrix.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: 37 - Continue On Error Matrix
on: [push, workflow_dispatch]
env:
PYTHON_VERSIONS: "2.x"
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 2
fail-fast: false
matrix:
python-version: [ '3.x', 'pypy-2.7', 'pypy-3.6', 'pypy-3.7' ]
name: Python ${{ matrix.python-version }} sample
continue-on-error: ${{ contains( '${{env.PYTHON_VERSION }}', '${{ matrix.python-version }}') }}
steps:
- uses: actions/checkout@v2.3.4
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install Python dependencies
run: python -m pip install --upgrade pip requests
- name: Run script
if: ${{ contains( '3.', '${{ matrix.python-version }}') }}
id: script
continue-on-error: ${{ contains( '${{env.PYTHON_VERSION }}', '${{ matrix.python-version }}') }}
run: python run.py
- name: Last step
if: ${{ contains( '3.', '${{ matrix.python-version }}') }}
run: echo "The run script step was a ${{ steps.script.outcome }}"