Skip to content

Bump pip from 21.1 to 23.3 #17

Bump pip from 21.1 to 23.3

Bump pip from 21.1 to 23.3 #17

Workflow file for this run

name: tests
on:
push:
branches: [ master ]
pull_request:
# Allow to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
config:
# [Python version, tox env]
- ["2.7", "plone51-py27"]
- ["2.7", "plone52-py27"]
- ["3.6", "plone52-py36"]
- ["3.7", "plone52-py37"]
- ["3.8", "plone52-py38"]
- ["3.7", "plone60-py37"]
- ["3.8", "plone60-py38"]
- ["3.9", "plone60-py39"]
runs-on: ubuntu-latest
name: ${{ matrix.config[1] }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.config[0] }}
- name: Pip cache
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.config[0] }}-${{ hashFiles('setup.*', 'tox.ini') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.config[0] }}-
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Prepare buildout egg cache
run: |
mkdir ~/.buildout
echo "[buildout]" >> ~/.buildout/default.cfg
echo "eggs-directory = ~/eggs" >> ~/.buildout/default.cfg
- name: Cache eggs
uses: actions/cache@v3
with:
path: ~/eggs
key: ${{ runner.os }}-eggs-${{ matrix.config[0] }}-${{ matrix.config[1] }}-${{ hashFiles('*cfg') }}
restore-keys: |
${{ runner.os }}-eggs-${{ matrix.config[0] }}-${{ matrix.config[1] }}-
${{ runner.os }}-eggs-${{ matrix.config[0] }}-
- name: Test
run: tox -e ${{ matrix.config[1] }}