Skip to content

Back to development: 1.1.18 #39

Back to development: 1.1.18

Back to development: 1.1.18 #39

# 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:
matrix:
include:
- python-version: '3.8'
plone-version: '5.2'
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.txt
buildout -Nt 5
- name: Test
run: |
bin/test
coverage:
runs-on: ubuntu-latest
name: Coverage tests
strategy:
matrix:
include:
- python-version: '3.8'
plone-version: '5.2'
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: |
sudo apt-get install -qq -y python3-dev
python -m pip install --upgrade pip
pip install -r requirements.txt coveralls==3.2.0
buildout -Nt 5
- name: Coverage test
run: |
coverage run bin/test
- name: Submit to Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: coveralls --service=github