Skip to content

Upgrade js dependencies #167

Upgrade js dependencies

Upgrade js dependencies #167

Workflow file for this run

name: tests
on:
push:
branches: [master]
pull_request:
schedule:
- cron: "0 12 * * 0" # run once a week on Sunday
jobs:
build:
strategy:
matrix:
config:
- ["Py3.7-Plone5.2", "3.7", "5.2"]
- ["Py3.8-Plone5.2", "3.8", "5.2"]
- ["Py3.8-Plone6.0", "3.8", "6.0"]
- ["Py3.11-Plone6.0", "3.11", "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: Cache
uses: actions/cache@v3
with:
path: |
~/.cache/pip
**/eggs
**/downloads
key: ${{ runner.os }}-cache-${{ hashFiles('setup.*', '*.cfg') }}-${{ matrix.config[0] }}
restore-keys: |
${{ runner.os }}-cache-
- name: Install dependencies
run: |
python -m venv .
bin/pip install -r requirements-${{ matrix.config[2] }}.txt
bin/buildout -c .github-${{ matrix.config[2] }}.cfg
- name: Pre commit
uses: pre-commit/action@v2.0.0
if: ${{ matrix.config[1] == '3.11' }}
- name: Code Analysis
run: |
bin/code-analysis
if: ${{ matrix.config[1] == '3.11' }}
- name: Test
run: |
bin/coverage run bin/test -s plonetheme.nuplone
bin/coverage report --fail-under=56