|
4 | 4 | name: Plone package |
5 | 5 |
|
6 | 6 | on: |
7 | | - push: |
8 | | - branches: [main] |
9 | | - pull_request: |
10 | | - branches: [main] |
| 7 | + push: |
| 8 | + branches: [main] |
| 9 | + pull_request: |
| 10 | + branches: [main] |
11 | 11 |
|
12 | 12 | jobs: |
13 | | - build: |
14 | | - runs-on: ubuntu-latest |
15 | | - strategy: |
16 | | - fail-fast: false |
17 | | - matrix: |
18 | | - plone-version: |
19 | | - - 'Plone52' |
20 | | - - 'Plone60' |
21 | | - python-version: [3.7, 3.8, 3.9] |
| 13 | + build: |
| 14 | + runs-on: ubuntu-latest |
| 15 | + strategy: |
| 16 | + fail-fast: false |
| 17 | + matrix: |
| 18 | + plone-version: |
| 19 | + - "Plone52" |
| 20 | + - "Plone60" |
| 21 | + python-version: [3.8, 3.10, 3.11] |
22 | 22 |
|
23 | | - steps: |
24 | | - - uses: actions/setup-python@v4 |
25 | | - with: |
26 | | - python-version: '3.9' |
27 | | - - uses: actions/checkout@v3 |
28 | | - - uses: actions/cache@v3 |
29 | | - with: |
30 | | - path: | |
31 | | - ~/.cache/pip |
32 | | - ~/buildout-cache |
33 | | - ~/extends |
34 | | - key: ${{ runner.os }}-tox-${{ matrix.python-version }}-${{ matrix.plone-version }}-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/*.cfg') }}-${{ hashFiles('**/constraints.txt') }}-${{ hashFiles('**/tox.ini') }} |
35 | | - #restore-keys: | |
36 | | - # ${{ runner.os }}-tox- |
37 | | - - name: Set up Python ${{ matrix.python-version }} |
38 | | - uses: actions/setup-python@v4 |
39 | | - with: |
40 | | - python-version: ${{ matrix.python-version }} |
41 | | - - name: setup buildout cache |
42 | | - run: | |
43 | | - mkdir -p ~/buildout-cache/{eggs,downloads} |
44 | | - mkdir ~/.buildout |
45 | | - echo "[buildout]" > $HOME/.buildout/default.cfg |
46 | | - echo "download-cache = $HOME/buildout-cache/downloads" >> $HOME/.buildout/default.cfg |
47 | | - echo "eggs-directory = $HOME/buildout-cache/eggs" >> $HOME/.buildout/default.cfg |
48 | | - - name: Install dependencies |
49 | | - run: | |
50 | | - python -m pip install --upgrade pip |
51 | | - pip install tox tox-gh-actions |
52 | | - - name: Black-Check |
53 | | - run: | |
54 | | - tox -r -e black-check |
55 | | - - name: Test with tox |
56 | | - run: | |
57 | | - tox -r |
58 | | - env: |
59 | | - PLONE-VERSION: ${{ matrix.plone-version }} |
60 | | - PYTHON-VERSION: ${{ matrix.python-version }} |
61 | | - - name: "Upload coverage to Codecov" |
62 | | - uses: "codecov/codecov-action@v3" |
63 | | - with: |
64 | | - fail_ci_if_error: true |
65 | | - if: matrix.python-version == '3.7' |
| 23 | + steps: |
| 24 | + - uses: actions/setup-python@v4 |
| 25 | + with: |
| 26 | + python-version: "3.11" |
| 27 | + - uses: actions/checkout@v3 |
| 28 | + - uses: actions/cache@v3 |
| 29 | + with: |
| 30 | + path: | |
| 31 | + ~/.cache/pip |
| 32 | + ~/buildout-cache |
| 33 | + ~/extends |
| 34 | + key: ${{ runner.os }}-tox-${{ matrix.python-version }}-${{ matrix.plone-version }}-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/*.cfg') }}-${{ hashFiles('**/constraints.txt') }}-${{ hashFiles('**/tox.ini') }} |
| 35 | + #restore-keys: | |
| 36 | + # ${{ runner.os }}-tox- |
| 37 | + - name: Set up Python ${{ matrix.python-version }} |
| 38 | + uses: actions/setup-python@v4 |
| 39 | + with: |
| 40 | + python-version: ${{ matrix.python-version }} |
| 41 | + - name: setup buildout cache |
| 42 | + run: | |
| 43 | + mkdir -p ~/buildout-cache/{eggs,downloads} |
| 44 | + mkdir ~/.buildout |
| 45 | + echo "[buildout]" > $HOME/.buildout/default.cfg |
| 46 | + echo "download-cache = $HOME/buildout-cache/downloads" >> $HOME/.buildout/default.cfg |
| 47 | + echo "eggs-directory = $HOME/buildout-cache/eggs" >> $HOME/.buildout/default.cfg |
| 48 | + - name: Install dependencies |
| 49 | + run: | |
| 50 | + python -m pip install --upgrade pip |
| 51 | + pip install tox tox-gh-actions |
| 52 | + - name: Black-Check |
| 53 | + run: | |
| 54 | + tox -r -e black-check |
| 55 | + - name: Test with tox |
| 56 | + run: | |
| 57 | + tox -r |
| 58 | + env: |
| 59 | + PLONE-VERSION: ${{ matrix.plone-version }} |
| 60 | + PYTHON-VERSION: ${{ matrix.python-version }} |
| 61 | + - name: "Upload coverage to Codecov" |
| 62 | + uses: "codecov/codecov-action@v3" |
| 63 | + with: |
| 64 | + fail_ci_if_error: true |
| 65 | + if: matrix.python-version == '3.7' |
0 commit comments