|
12 | 12 | runs-on: ubuntu-latest |
13 | 13 | strategy: |
14 | 14 | matrix: |
15 | | - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] |
| 15 | + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] |
16 | 16 | architecture: ["x64"] |
17 | 17 | steps: |
18 | 18 | - uses: actions/checkout@v2 |
@@ -44,34 +44,34 @@ jobs: |
44 | 44 | ${{ runner.os }}-pip- |
45 | 45 | ${{ runner.os }}- |
46 | 46 | - name: Upgrade setuptools |
47 | | - if: matrix.python-version == 3.12 |
| 47 | + if: matrix.python-version == 3.13 |
48 | 48 | run: | |
49 | | - # workaround for 3.12, SEE: https://github.com/pypa/setuptools/issues/3661#issuecomment-1813845177 |
| 49 | + # workaround for 3.13, SEE: https://github.com/pypa/setuptools/issues/3661#issuecomment-1813845177 |
50 | 50 | pip install --upgrade setuptools |
51 | 51 | - name: Install dependencies |
52 | | - if: matrix.python-version != 3.8 |
| 52 | + if: matrix.python-version > 3.9 |
53 | 53 | run: pip install -r requirements-dev.txt |
54 | 54 | - name: Install dependencies |
55 | | - if: matrix.python-version == 3.8 |
| 55 | + if: matrix.python-version <= 3.9 |
56 | 56 | run: pip install -r requirements-dev3.8.txt |
57 | 57 | - name: Lint with flake8 |
58 | | - if: matrix.python-version == 3.12 |
| 58 | + if: matrix.python-version == 3.13 |
59 | 59 | run: | |
60 | 60 | # stop the build if there are Python syntax errors or undefined names |
61 | 61 | flake8 deepdiff --count --select=E9,F63,F7,F82 --show-source --statistics |
62 | 62 | # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide |
63 | 63 | flake8 deepdiff --count --exit-zero --max-complexity=26 --max-line-lengt=250 --statistics |
64 | 64 | - name: Test with pytest and get the coverage |
65 | | - if: matrix.python-version == 3.12 |
| 65 | + if: matrix.python-version == 3.13 |
66 | 66 | run: | |
67 | 67 | pytest --benchmark-disable --cov-report=xml --cov=deepdiff tests/ --runslow |
68 | 68 | - name: Test with pytest and no coverage report |
69 | | - if: matrix.python-version != 3.12 |
| 69 | + if: matrix.python-version != 3.13 |
70 | 70 | run: | |
71 | 71 | pytest --benchmark-disable |
72 | 72 | - name: Upload coverage to Codecov |
73 | 73 | uses: codecov/codecov-action@v4 |
74 | | - if: matrix.python-version == 3.12 |
| 74 | + if: matrix.python-version == 3.13 |
75 | 75 | env: |
76 | 76 | CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
77 | 77 | with: |
|
0 commit comments