-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (37 loc) · 1.05 KB
/
tests.yml
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
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
name: tests
on:
push:
branches: [master]
pull_request:
schedule:
- cron: "0 12 * * 0" # run once a week on Sunday
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- ["3.7", "py37-Plone52"]
- ["3.8", "py38-Plone52"]
- ["3.8", "py38-Plone60"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version[0] }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version[0] }}
- name: Pip cache
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('setup.*', 'tox.ini') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox
- name: Run tox
run: tox -e ${{ matrix.python-version[1] }}