github.com/drone/go-convert@v0.0.0-20240307072510-6bd371c65e61/convert/github/testdata/examples/python.yaml.golden (about)

     1  kind: pipeline
     2  spec:
     3    stages:
     4    - name: build
     5      spec:
     6        clone: {}
     7        platform:
     8          arch: amd64
     9          os: linux
    10        runtime:
    11          spec: {}
    12          type: cloud
    13        steps:
    14        - name: Set up Python ${{ matrix.python-version }}
    15          spec:
    16            uses: actions/setup-python@v3
    17            with:
    18              python-version: ${{ matrix.python-version }}
    19          type: action
    20        - name: Install dependencies
    21          spec:
    22            run: |
    23              python -m pip install --upgrade pip
    24              python -m pip install flake8 pytest
    25              if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
    26          type: script
    27        - name: Lint with flake8
    28          spec:
    29            run: |
    30              # stop the build if there are Python syntax errors or undefined names
    31              flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
    32              # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
    33              flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
    34          type: script
    35        - name: Test with pytest
    36          spec:
    37            run: |
    38              pytest
    39          type: script
    40      strategy:
    41        spec:
    42          axis:
    43            python-version:
    44            - "3.8"
    45            - "3.9"
    46            - "3.10"
    47        type: matrix
    48      type: ci
    49  version: 1