File: python-tests.yml

package info (click to toggle)
pytest-doctestplus 1.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 352 kB
  • sloc: python: 1,978; makefile: 13; sh: 7
file content (77 lines) | stat: -rw-r--r-- 2,438 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Run unit tests

on:
  pull_request:
  push:
    branches: [ main ]
    tags:
      - '*'
  workflow_dispatch:
  schedule:
    # Run every Tuesday at 03:53 UTC
    - cron: 53 3 * * 2

jobs:
  tests:
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      # The aim with the matrix below is to walk through a representative but not full combination of OS, Python, and pytest versions.
      matrix:
        include:
          - os: ubuntu-latest
            python-version: '3.10'
            toxenv: py10-test-pytestoldest
          - os: ubuntu-latest
            python-version: '3.10'
            toxenv: py310-test-pytest71
          - os: windows-latest
            python-version: '3.11'
            toxenv: py311-test-pytest72
          - os: ubuntu-latest
            python-version: '3.11'
            toxenv: py311-test-pytest73
          - os: ubuntu-latest
            python-version: '3.11'
            toxenv: py311-test-pytest74
          - os: ubuntu-latest
            python-version: '3.12'
            toxenv: py312-test-pytest80
          - os: windows-latest
            python-version: '3.12'
            toxenv: py312-test-pytest81
          - os: ubuntu-latest
            python-version: '3.12'
            toxenv: py312-test-pytest82
          - os: macos-latest
            python-version: '3.13'
            toxenv: py313-test-pytest83
          - os: windows-latest
            python-version: '3.13'
            toxenv: py313-test-pytest84
          - os: windows-latest
            python-version: '3.14'
            toxenv: py314-test-pytestdev
            posargs: -v
          - os: macos-latest
            python-version: '3.14'
            toxenv: py314-test-pytestdev
          - os: ubuntu-latest
            python-version: '3.14'
            toxenv: py314-test-pytestdev-numpydev
          - os: ubuntu-latest
            python-version: '3.13'
            toxenv: py313-test-pytest83-pytestasyncio

    steps:
    - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8  # v6.0.1
      with:
        fetch-depth: 0
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548  # v6.1.0
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install Tox
      run: python -m pip install tox
    - name: Run Tox
      run: tox ${{ matrix.toxargs }} -v -e ${{ matrix.toxenv }}