Merge pull request #255 from euphorie/map-images #292
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
--- | |
name: tests | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: | |
- main | |
pull_request: | |
schedule: | |
- cron: "0 12 * * 0" # run once a week on Sunday | |
jobs: | |
build: | |
strategy: | |
matrix: | |
config: | |
- ["Py3.8-Plone5.2", "3.8", "5.2"] | |
- ["Py3.8-Plone6.0", "3.8", "6.0"] | |
runs-on: ubuntu-latest | |
name: ${{ matrix.config[0] }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.config[1] }} | |
- name: Install necessary dependencies | |
run: | | |
sudo apt update | |
sudo apt install -y libldap2-dev libsasl2-dev libssl-dev | |
- name: Cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/pip | |
**/eggs | |
**/downloads | |
key: ${{ runner.os }}-cache-${{ hashFiles('setup.*', '*.cfg') }}-${{ matrix.config[0] }} # yamllint disable-line rule:line-length | |
restore-keys: | | |
${{ runner.os }}-cache- | |
- name: Install dependencies | |
run: | | |
sudo locale-gen en_US.UTF-8 nl_NL@euro | |
python -m venv . | |
ln -s requirements-${{ matrix.config[2] }}.txt requirements.txt | |
bin/pip install -r requirements.txt | |
ln -s versions-${{ matrix.config[2] }}.cfg versions.cfg | |
bin/buildout -c .github.cfg | |
- name: Pre commit | |
uses: pre-commit/[email protected] | |
if: ${{ matrix.config[2] == '5.2' }} | |
- name: Code Analysis | |
run: | | |
bin/code-analysis | |
if: ${{ matrix.config[2] == '5.2' }} | |
- name: Test | |
run: | | |
bin/coverage run bin/test -s osha.oira | |
bin/coverage report --fail-under=38 -i | |
env: | |
zope_i18n_compile_mo_files: 1 |