-
-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (55 loc) · 1.9 KB
/
Copy pathtests.yml
File metadata and controls
58 lines (55 loc) · 1.9 KB
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
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
# plone.autoinclude has a really specific test setup, and can only really be
# tested on its own, not on Jenkins in combination with other plone packages.
name: Unit/integration
on:
push:
branches:
- main
pull_request:
schedule:
- cron: '13 7 * * 0' # run once a week on Sunday
# Allow to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
strategy:
matrix:
config:
# [Python version, tox env]
- ["3.10", "lint", "ubuntu-latest"]
- ["3.10", "py310-unit", "ubuntu-latest"]
- ["3.11", "py311-unit", "ubuntu-latest"]
- ["3.12", "py312-unit", "ubuntu-latest"]
- ["3.13", "py313-unit", "ubuntu-latest"]
- ["3.14", "py314-unit", "ubuntu-latest"]
- ["3.10", "py310-integration", "ubuntu-latest"]
- ["3.11", "py311-integration", "ubuntu-latest"]
- ["3.12", "py312-integration", "ubuntu-latest"]
- ["3.13", "py313-integration", "ubuntu-latest"]
- ["3.14", "py314-integration", "ubuntu-latest"]
- ["3.13", "buildout", "ubuntu-latest"]
- ["3.14", "buildout5", "ubuntu-latest"]
- ["3.10", "owncoverage", "ubuntu-latest"]
runs-on: ${{ matrix.config[2] }}
name: ${{ matrix.config[1] }}
steps:
- uses: actions/checkout@v7.0.0
- name: Set up Python
uses: actions/setup-python@v7.0.0
with:
python-version: ${{ matrix.config[0] }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install "tox >= 4"
- name: Test
run: tox -e ${{ matrix.config[1] }}
- name: Coverage
if: matrix.config[1] == 'coverage'
run: |
pip install coveralls coverage-python-version
coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}