From 8be0f15e07a6f138590e60849ef709ee48e92638 Mon Sep 17 00:00:00 2001 From: "Jens W. Klein" Date: Fri, 7 Aug 2020 11:57:17 +0200 Subject: [PATCH] update tests to run with Zope 4.5 and add gh actions for win, macos, linux --- .github/workflows/test.yml | 41 ++++++++++++++++++++++++++++++++++++++ .gitignore | 2 +- CHANGES.rst | 6 ++++++ buildout.cfg | 2 +- constraints.txt | 1 + requirements.txt | 2 ++ 6 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/test.yml create mode 100644 constraints.txt create mode 100644 requirements.txt diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..abec255 --- /dev/null +++ b/.github/workflows/test.yml @@ -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 diff --git a/.gitignore b/.gitignore index 89ba6f5..4383dbe 100644 --- a/.gitignore +++ b/.gitignore @@ -8,9 +8,9 @@ man parts __pycache__ -.* *.dll *.pyc *.pyo *.so *.egg-info/ +*.vscode/ diff --git a/CHANGES.rst b/CHANGES.rst index dd28901..2bd2b94 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -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] diff --git a/buildout.cfg b/buildout.cfg index bc1aded..9f8959a 100644 --- a/buildout.cfg +++ b/buildout.cfg @@ -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 diff --git a/constraints.txt b/constraints.txt new file mode 100644 index 0000000..4125e7f --- /dev/null +++ b/constraints.txt @@ -0,0 +1 @@ +-c https://zopefoundation.github.io/Zope/releases/5.0a1/constraints.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..7829ed7 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +-r https://zopefoundation.github.io/Zope/releases/4.5/requirements-full.txt +