fix(gha/tests): added missing config file #8
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 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: Python package | |
on: | |
push: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
PLONE_VERSION: [4.3] | |
services: | |
libreoffice: | |
image: imiobe/libreoffice:7.3 | |
ports: | |
- 2002:2002 | |
volumes: | |
- /tmp:/tmp | |
- /var/tmp:/var/tmp | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up pyenv and Python | |
uses: "gabrielfalcao/pyenv-action@v14" | |
with: | |
default: 2.7.18 | |
versions: 3.8.16 | |
command: pyenv -v | |
- name: Setup Env | |
run: | | |
mkdir -p -m 777 /tmp/appy/ | |
sudo add-apt-repository ppa:libreoffice/ppa -y | |
sudo apt update -qq -y | |
sudo apt-get install -qq -y libreoffice libreoffice-script-provider-python | |
sudo apt-get autoremove -qq -y | |
sudo apt-get autoclean -qq -y | |
mkdir -p download-cache/{eggs,downloads} | |
pip install -r requirements.txt | |
- name: Cache eggs | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-eggs | |
with: | |
path: ~/download-cache/eggs | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.PLONE_VERSION }} | |
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.PLONE_VERSION }} | |
- name: buildout | |
run: | | |
pip install -r requirements.txt coverage==5.3.1 | |
buildout -c test-ci.cfg annotate | |
buildout -c test-ci.cfg | |
- name: test | |
run: | | |
bin/testme |