-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle multiple Plone / Python versions in buildout & tests
- Loading branch information
Showing
17 changed files
with
121 additions
and
401 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: Tests | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
name: Run Tests | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- python-version: '2.7' | ||
plone-version: '5.2' | ||
- python-version: '3.7' | ||
plone-version: '5.2' | ||
- python-version: '3.8' | ||
plone-version: '5.2' | ||
- python-version: '3.8' | ||
plone-version: '6.0' | ||
- python-version: '3.9' | ||
plone-version: '6.0' | ||
- python-version: '3.10' | ||
plone-version: '6.0' | ||
|
||
steps: | ||
- name: Clone repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Cache eggs | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-eggs | ||
with: | ||
path: ./eggs | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.python-version }}-${{ matrix.plone-version }} | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies and run buildout | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements_plone-${{ matrix.plone-version }}.x.txt | ||
buildout -Nt 5 -c plone-${{ matrix.plone-version }}.x.cfg | ||
- name: Test | ||
run: | | ||
bin/test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.