Skip to content

Commit

Permalink
update tests to run with Zope 4.5 and add gh actions for win, macos, …
Browse files Browse the repository at this point in the history
…linux
  • Loading branch information
jensens committed Aug 7, 2020
1 parent b935d6f commit 8be0f15
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 2 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Test

on: [push]

jobs:
build:
strategy:
matrix:
python-version:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
os:
- ubuntu-latest
- windows-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Cache packages
uses: actions/cache@v1
id: cache
with:
path: .cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt', 'constraints.txt', 'buildout.cfg', 'setup.*') }}
restore-keys: |
${{ runner.os }}-test
- name: Install dependencies
run: |
pip install -U pip
pip install -r requirements.txt -c constraints.txt
buildout
- name: Run Tests
run: |
./bin/test
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ man
parts

__pycache__
.*
*.dll
*.pyc
*.pyo
*.so
*.egg-info/
*.vscode/
6 changes: 6 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ Changes
0.8.1 (unreleased)
------------------

- Add Github Actions testrunners for ``ubuntu``, ``windows`` and ``macos``.
[jensens]

- Run tests with Zope 4.5.
[jensens]

- Test/support for Python 3.8.
[jensens]

Expand Down
2 changes: 1 addition & 1 deletion buildout.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[buildout]
extends =
https://zopefoundation.github.io/Zope/releases/4.0b6/versions-prod.cfg
https://zopefoundation.github.io/Zope/releases/4.5/versions-prod.cfg

develop = .
parts = test
Expand Down
1 change: 1 addition & 0 deletions constraints.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-c https://zopefoundation.github.io/Zope/releases/5.0a1/constraints.txt
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-r https://zopefoundation.github.io/Zope/releases/4.5/requirements-full.txt

0 comments on commit 8be0f15

Please sign in to comment.