Skip to content

Commit

Permalink
prebuilt image
Browse files Browse the repository at this point in the history
  • Loading branch information
gotcha committed Sep 18, 2023
1 parent 4ebbe9b commit aa173e6
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,34 +67,9 @@ jobs:
- ["2.7", "plone52-py27"]
runs-on: ubuntu-20.04
container:
image: python:2.7.18
image: plone/test-with-tox:4.3-2.7
name: ${{ matrix.config[1] }}
steps:
- uses: actions/checkout@v3
- name: Pip cache
uses: actions/cache@v3
with:
path: /github/home/.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 /github/home/.buildout
echo "[buildout]" >> /github/home/.buildout/default.cfg
echo "eggs-directory = /github/home/eggs" >> /github/home/.buildout/default.cfg
- name: Cache eggs
uses: actions/cache@v3
with:
path: /github/home/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] }}

0 comments on commit aa173e6

Please sign in to comment.