2021-11-17 11:31:22 +01:00
|
|
|
name: e2e-cache
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- releases/*
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
2024-06-27 20:18:32 +02:00
|
|
|
workflow_dispatch:
|
2021-11-17 11:31:22 +01:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
jobs:
|
|
|
|
python-pip-dependencies-caching:
|
|
|
|
name: Test pip (Python ${{ matrix.python-version}}, ${{ matrix.os }})
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2024-10-24 15:38:22 +02:00
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
|
|
|
|
python-version: ['3.9', 'pypy-3.9-v7.x', '3.10', 'pypy-3.10-v7.x']
|
2021-11-17 11:31:22 +01:00
|
|
|
steps:
|
2023-11-08 11:16:06 +01:00
|
|
|
- uses: actions/checkout@v4
|
2021-11-17 11:31:22 +01:00
|
|
|
- name: Setup Python
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
cache: 'pip'
|
|
|
|
- name: Install dependencies
|
|
|
|
run: pip install numpy pandas requests
|
|
|
|
|
|
|
|
python-pipenv-dependencies-caching:
|
|
|
|
name: Test pipenv (Python ${{ matrix.python-version}}, ${{ matrix.os }})
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2024-10-24 15:38:22 +02:00
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
|
|
|
|
python-version: ['3.9', 'pypy-3.9-v7.x', '3.10', 'pypy-3.10-v7.x']
|
2021-11-17 11:31:22 +01:00
|
|
|
steps:
|
2023-11-08 11:16:06 +01:00
|
|
|
- uses: actions/checkout@v4
|
2021-11-17 11:31:22 +01:00
|
|
|
- name: Setup Python
|
2023-07-13 14:11:40 +02:00
|
|
|
id: cache-pipenv
|
2021-11-17 11:31:22 +01:00
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
cache: 'pipenv'
|
2022-01-26 16:54:54 +01:00
|
|
|
- name: Install pipenv
|
2022-06-29 19:09:14 +02:00
|
|
|
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
|
2023-07-13 14:11:40 +02:00
|
|
|
- name: Prepare environment
|
2022-06-29 20:16:07 +02:00
|
|
|
shell: pwsh
|
2022-04-04 15:12:24 +02:00
|
|
|
run: |
|
2022-06-29 19:09:14 +02:00
|
|
|
mv ./__tests__/data/Pipfile.lock .
|
|
|
|
mv ./__tests__/data/Pipfile .
|
2023-07-13 14:11:40 +02:00
|
|
|
mv ./__tests__/test-pipenv.py .
|
|
|
|
- name: Install dependencies
|
|
|
|
shell: pwsh
|
|
|
|
if: steps.cache-pipenv.outputs.cache-hit != 'true'
|
|
|
|
run: |
|
2022-06-29 20:28:20 +02:00
|
|
|
if ("${{ matrix.python-version }}" -Match "pypy") {
|
2023-07-13 14:11:40 +02:00
|
|
|
pipenv install --python pypy # --keep-outdated
|
2022-06-29 20:38:02 +02:00
|
|
|
} else {
|
2023-07-13 14:11:40 +02:00
|
|
|
pipenv install --python ${{ matrix.python-version }} # --keep-outdated
|
2022-06-29 20:16:07 +02:00
|
|
|
}
|
2023-07-13 14:11:40 +02:00
|
|
|
- name: Run Python Script
|
|
|
|
run: pipenv run python test-pipenv.py
|
2021-11-17 11:31:22 +01:00
|
|
|
|
2021-11-24 15:50:35 +01:00
|
|
|
python-poetry-dependencies-caching:
|
|
|
|
name: Test poetry (Python ${{ matrix.python-version}}, ${{ matrix.os }})
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2024-10-24 15:38:22 +02:00
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
|
|
|
|
python-version: ['3.9', 'pypy-3.9-v7.x', '3.10', 'pypy-3.10-v7.x']
|
2021-11-24 15:50:35 +01:00
|
|
|
steps:
|
2023-11-08 11:16:06 +01:00
|
|
|
- uses: actions/checkout@v4
|
2021-11-24 15:50:35 +01:00
|
|
|
- name: Install poetry
|
|
|
|
run: pipx install poetry
|
2022-07-25 15:02:06 +02:00
|
|
|
- name: Init pyproject.toml
|
|
|
|
run: mv ./__tests__/data/pyproject.toml .
|
2021-11-24 15:50:35 +01:00
|
|
|
- name: Setup Python
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
cache: 'poetry'
|
|
|
|
- name: Install dependencies
|
2022-07-25 15:02:06 +02:00
|
|
|
run: poetry install
|
2021-11-24 15:50:35 +01:00
|
|
|
|
2021-11-17 11:31:22 +01:00
|
|
|
python-pip-dependencies-caching-path:
|
2024-06-27 20:18:32 +02:00
|
|
|
name: Test pip (Python ${{ matrix.python-version}}, ${{ matrix.os }}, caching path)
|
2021-11-17 11:31:22 +01:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2024-10-24 15:38:22 +02:00
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
|
|
|
|
python-version: ['3.9', 'pypy-3.9-v7.x', '3.10', 'pypy-3.10-v7.x']
|
2021-11-17 11:31:22 +01:00
|
|
|
steps:
|
2023-11-08 11:16:06 +01:00
|
|
|
- uses: actions/checkout@v4
|
2021-11-17 11:31:22 +01:00
|
|
|
- name: Setup Python
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
cache: 'pip'
|
|
|
|
cache-dependency-path: __tests__/data/requirements.txt
|
|
|
|
- name: Install dependencies
|
|
|
|
run: pip install numpy pandas requests
|
|
|
|
|
|
|
|
python-pipenv-dependencies-caching-path:
|
2024-06-27 20:18:32 +02:00
|
|
|
name: Test pipenv (Python ${{ matrix.python-version}}, ${{ matrix.os }}, caching path)
|
2021-11-17 11:31:22 +01:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2024-10-24 15:38:22 +02:00
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
|
|
|
|
python-version: ['3.9', 'pypy-3.9-v7.x', '3.10', 'pypy-3.10-v7.x']
|
2021-11-17 11:31:22 +01:00
|
|
|
steps:
|
2023-11-08 11:16:06 +01:00
|
|
|
- uses: actions/checkout@v4
|
2021-11-17 11:31:22 +01:00
|
|
|
- name: Setup Python
|
2023-07-13 14:11:40 +02:00
|
|
|
id: cache-pipenv
|
2021-11-17 11:31:22 +01:00
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
cache: 'pipenv'
|
2022-04-04 15:12:24 +02:00
|
|
|
cache-dependency-path: '**/pipenv-requirements.txt'
|
2022-01-26 16:54:54 +01:00
|
|
|
- name: Install pipenv
|
2022-06-29 19:09:14 +02:00
|
|
|
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
|
2023-07-13 14:11:40 +02:00
|
|
|
- name: Prepare environment
|
2022-06-29 20:16:07 +02:00
|
|
|
shell: pwsh
|
2022-04-04 15:12:24 +02:00
|
|
|
run: |
|
2022-06-29 19:09:14 +02:00
|
|
|
mv ./__tests__/data/Pipfile.lock .
|
|
|
|
mv ./__tests__/data/Pipfile .
|
2023-07-13 14:11:40 +02:00
|
|
|
mv ./__tests__/test-pipenv.py .
|
|
|
|
- name: Install dependencies
|
|
|
|
shell: pwsh
|
|
|
|
if: steps.cache-pipenv.outputs.cache-hit != 'true'
|
|
|
|
run: |
|
2022-06-29 20:28:20 +02:00
|
|
|
if ("${{ matrix.python-version }}" -Match "pypy") {
|
2023-07-13 14:11:40 +02:00
|
|
|
pipenv install --python pypy # --keep-outdated
|
2022-06-29 20:38:02 +02:00
|
|
|
} else {
|
2023-07-13 14:11:40 +02:00
|
|
|
pipenv install --python ${{ matrix.python-version }} # --keep-outdated
|
2023-03-09 11:44:56 +01:00
|
|
|
}
|
2023-07-13 14:11:40 +02:00
|
|
|
- name: Run Python Script
|
|
|
|
run: pipenv run python test-pipenv.py
|