|
1 | | -name: Lint |
| 1 | +name: Tests |
2 | 2 |
|
3 | | -on: [push, pull_request] |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + push: |
| 6 | + branches: |
| 7 | + - "support/**" |
4 | 8 |
|
5 | 9 | jobs: |
6 | 10 | flake8: |
7 | | - name: flake8 |
8 | | - runs-on: ubuntu-lts |
| 11 | + runs-on: ubuntu-latest |
9 | 12 | steps: |
10 | 13 | - name: Checkout |
11 | | - uses: actions/checkout@v2 |
| 14 | + uses: actions/checkout@v6 |
12 | 15 | - name: Set up Python |
13 | | - uses: actions/setup-python@v2 |
| 16 | + uses: actions/setup-python@v6 |
14 | 17 | with: |
15 | 18 | python-version: 3.9 |
16 | 19 | - name: Install flake8 |
@@ -38,27 +41,25 @@ jobs: |
38 | 41 | run: isort -c -rc -df aldryn_django |
39 | 42 |
|
40 | 43 | unit-tests: |
41 | | - runs-on: ubuntu-lts |
| 44 | + runs-on: ubuntu-latest |
42 | 45 | strategy: |
43 | 46 | fail-fast: false |
44 | 47 | matrix: |
45 | | - python-version: ["3.8", "3.9", "3.10"] |
| 48 | + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] |
46 | 49 | steps: |
47 | | - - uses: actions/checkout@v1 |
| 50 | + - uses: actions/checkout@v6 |
| 51 | + - name: Update depenedencies |
| 52 | + run: sudo apt-get update |
48 | 53 | - name: Install dependencies |
49 | 54 | run: sudo apt-get install -y libxml2-dev libxslt-dev python-dev-is-python3 |
50 | 55 | - name: Set up Python ${{ matrix.python-version }} |
51 | | - uses: actions/setup-python@v2 |
| 56 | + uses: actions/setup-python@v6 |
52 | 57 | with: |
53 | 58 | python-version: ${{ matrix.python-version }} |
54 | | - - name: Install dependencies |
| 59 | + - name: Run tests |
55 | 60 | run: | |
56 | 61 | python -m pip install --upgrade pip |
57 | | - pip install packaging |
58 | | - pip install --upgrade urllib3 |
59 | | - pip install -r tests/requirements.txt |
| 62 | + python -m pip install -U packaging setuptools |
| 63 | + python -m pip install -r tests/requirements.txt |
60 | 64 | python setup.py install |
61 | | - - name: Run coverage |
62 | | - run: coverage run setup.py test |
63 | | - - name: Upload Coverage to Codecov |
64 | | - uses: codecov/codecov-action@v1 |
| 65 | + python tests/settings.py |
0 commit comments