File: main.yaml

package info (click to toggle)
deepdiff 8.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,976 kB
  • sloc: python: 16,739; makefile: 167
file content (58 lines) | stat: -rw-r--r-- 1,727 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
name: CI

on:
  push:    { branches: [master, dev] }
  pull_request: { branches: [master, dev] }

jobs:
  build:
    runs-on: ubuntu-latest
    env:
      DEFAULT_PYTHON: '3.12'
    strategy:
      matrix:
        python-version: ['3.9','3.10','3.11','3.12','3.13']
        architecture: ['x64']

    steps:
      - uses: actions/checkout@v3

      - name: Setup Python
        uses: actions/setup-python@v4
        with:
          python-version: ${{ matrix.python-version }}
          architecture: ${{ matrix.architecture }}
          cache: pip
          cache-dependency-path: pyproject.toml

      - name: Install nox
        run: pip install nox==2025.5.1

      - name: Lint with flake8
        if: ${{ matrix.python-version == '3.12' }}
        run: |
          nox -s flake8 -- deepdiff --count --select=E9,F63,F7,F82 --show-source --statistics
          nox -s flake8 -- deepdiff --count --exit-zero --max-complexity=26 --max-line-length=250 --statistics

      - name: Test with pytest (no coverage)
        if: ${{ matrix.python-version != '3.12' }}
        run: |
          nox -s pytest-${{ matrix.python-version }} -- --benchmark-disable tests/

      - name: Test with pytest (+ coverage)
        if: ${{ matrix.python-version == '3.12' }}
        run: |
          nox -s pytest-${{ matrix.python-version }} -- \
            --benchmark-disable \
            --cov-report=xml \
            --cov=deepdiff \
            tests/ --runslow

      - name: Upload coverage
        if: ${{ matrix.python-version == '3.12' }}
        uses: codecov/codecov-action@v4
        with:
          token: ${{ secrets.CODECOV_TOKEN }}
          file: coverage.xml
          env_vars: OS,PYTHON
          fail_ci_if_error: true