File: test-pypy27.yml

package info (click to toggle)
python-parse-type 0.6.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 772 kB
  • sloc: python: 5,273; sh: 9; makefile: 6
file content (51 lines) | stat: -rw-r--r-- 1,465 bytes parent folder | download
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# -- TEST-VARIANT: pypy-27 on ubuntu-latest
# BASED ON: test.yml
# DESCRIPTION: Checks for Python 2.7 support and any problems

name: test-pypy27
on:
  workflow_dispatch:
  push:
    branches: [ "main", "release/**" ]
  pull_request:
    types: [opened, reopened, review_requested]
    branches: [ "main" ]

jobs:
  test:
    runs-on: ubuntu-latest
    # -- DISABLED: continue-on-error: true
    strategy:
      fail-fast: false
      matrix:
        python-version: ["pypy-2.7"]
    steps:
      - uses: actions/checkout@v5
      - uses: actions/setup-python@v5
        with:
          python-version: ${{ matrix.python-version }}
          cache: 'pip'
          cache-dependency-path: 'py.requirements/*.txt'

      - name: Install Python package dependencies (step 0)
        run: |
          python -m pip install -U pip setuptools build wheel
          pip --version
      - name: Install Python package dependencies (step 1)
        run: |
           pip install -r py.requirements/ci.github.testing.txt
           pip list
      - name: Install Python package dependencies (step 2)
        run: |
           pip install .
      - name: Run tests
        run: pytest
      - name: Upload test reports
        uses: actions/upload-artifact@v4
        with:
          name: test reports
          path: |
            build/testing/report.xml
            build/testing/report.html
        if: ${{ job.status == 'failure' }}
        # MAYBE: if: ${{ always() }}