File: tests.yml

package info (click to toggle)
python-xmlrunner 4.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 336 kB
  • sloc: python: 2,035; makefile: 215
file content (68 lines) | stat: -rw-r--r-- 1,588 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
name: Tests

on:
  push:
    branches:
      - master
  pull_request:

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        name: [
          "py310",
          "py311",
          "py312",
          "py313",
          "py314",
        ]
        include:
          - name: py310
            python-version: "3.10"
            tox_env: py310
          - name: py311
            python-version: "3.11"
            tox_env: py311
          - name: py312
            python-version: "3.12"
            tox_env: py312
          - name: py313
            python-version: "3.13"
            tox_env: py313
          - name: py314
            python-version: "3.14"
            tox_env: py314
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Setup Python ${{ matrix.python-version }}
        uses: actions/setup-python@v2
        with:
          python-version: ${{ matrix.python-version }}
      - name: Before Install
        run: |
          python --version
          uname -a
          lsb_release -a
      - name: Install
        env:
          TOXENV: ${{ matrix.tox_env }}
        run: |
          pip install tox-gh-actions codecov coveralls
          pip --version
          tox --version
      - name: Script
        run: |
          tox run -v
      - name: After Failure
        if: ${{ failure() }}
        run: |
          more .tox/log/* | cat
          more .tox/*/log/* | cat
      - name: Upload to Codecov
        run: |
          tox -e uploadcodecov
        env:
          CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}