ignore non-deterministic worker stats in test_cache_deeply_nested_a2 #839
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: { branches: [master, dev] } | |
| pull_request: { branches: [master, dev] } | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| DEFAULT_PYTHON: '3.14' | |
| strategy: | |
| matrix: | |
| python-version: ['3.10','3.11','3.12','3.13','3.14'] | |
| architecture: ['x64'] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup Python | |
| uses: actions/setup-python@v6 | |
| 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.14' }} | |
| 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.14' }} | |
| run: | | |
| nox -s pytest-${{ matrix.python-version }} -- --benchmark-disable tests/ | |
| - name: Test with pytest (+ coverage) | |
| if: ${{ matrix.python-version == '3.14' }} | |
| run: | | |
| nox -s pytest-${{ matrix.python-version }} -- \ | |
| --benchmark-disable \ | |
| --cov-report=xml \ | |
| --cov=deepdiff \ | |
| tests/ --runslow | |
| - name: Upload coverage | |
| if: ${{ matrix.python-version == '3.14' }} | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| file: coverage.xml | |
| env_vars: OS,PYTHON | |
| fail_ci_if_error: true |