2021-11-17 05:31:22 -05:00
|
|
|
name: e2e-cache
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- releases/*
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
|
|
|
|
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:
|
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
2022-02-18 12:29:05 -05:00
|
|
|
python-version: ['3.9', 'pypy-3.7-v7.x']
|
2021-11-17 05:31:22 -05:00
|
|
|
steps:
|
2022-04-04 09:12:24 -04:00
|
|
|
- uses: actions/checkout@v3
|
2021-11-17 05:31:22 -05: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:
|
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
2022-06-29 17:41:39 -04:00
|
|
|
python-version: ['3.9', 'pypy-3.9-v7.x']
|
2021-11-17 05:31:22 -05:00
|
|
|
steps:
|
2022-04-04 09:12:24 -04:00
|
|
|
- uses: actions/checkout@v3
|
2021-11-17 05:31:22 -05:00
|
|
|
- name: Setup Python
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
cache: 'pipenv'
|
2022-01-26 10:54:54 -05:00
|
|
|
- name: Install pipenv
|
2022-06-29 13:09:14 -04:00
|
|
|
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
|
2021-11-17 05:31:22 -05:00
|
|
|
- name: Install dependencies
|
2022-06-29 14:16:07 -04:00
|
|
|
shell: pwsh
|
2022-04-04 09:12:24 -04:00
|
|
|
run: |
|
2022-06-29 13:09:14 -04:00
|
|
|
mv ./__tests__/data/Pipfile.lock .
|
|
|
|
mv ./__tests__/data/Pipfile .
|
2022-06-29 14:28:20 -04:00
|
|
|
if ("${{ matrix.python-version }}" -Match "pypy") {
|
2022-06-29 14:16:07 -04:00
|
|
|
pipenv install --keep-outdated --python pypy
|
2022-06-29 14:38:02 -04:00
|
|
|
} else {
|
|
|
|
pipenv install --keep-outdated --python ${{ matrix.python-version }}
|
2022-06-29 14:16:07 -04:00
|
|
|
}
|
2021-11-17 05:31:22 -05:00
|
|
|
|
2021-11-24 09:50:35 -05:00
|
|
|
python-poetry-dependencies-caching:
|
|
|
|
name: Test poetry (Python ${{ matrix.python-version}}, ${{ matrix.os }})
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
2022-05-30 09:02:04 -04:00
|
|
|
python-version: ['3.9', 'pypy-3.8']
|
2021-11-24 09:50:35 -05:00
|
|
|
steps:
|
2022-04-04 09:12:24 -04:00
|
|
|
- uses: actions/checkout@v3
|
2021-11-24 09:50:35 -05:00
|
|
|
- name: Install poetry
|
|
|
|
run: pipx install poetry
|
2022-07-25 09:02:06 -04:00
|
|
|
- name: Init pyproject.toml
|
|
|
|
run: mv ./__tests__/data/pyproject.toml .
|
2021-11-24 09:50:35 -05:00
|
|
|
- name: Setup Python
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
cache: 'poetry'
|
|
|
|
- name: Install dependencies
|
2022-07-25 09:02:06 -04:00
|
|
|
run: poetry install
|
2021-11-24 09:50:35 -05:00
|
|
|
|
2021-11-17 05:31:22 -05:00
|
|
|
python-pip-dependencies-caching-path:
|
|
|
|
name: Test pip (Python ${{ matrix.python-version}}, ${{ matrix.os }})
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
2022-02-18 12:29:05 -05:00
|
|
|
python-version: ['3.9', 'pypy-3.7-v7.x']
|
2021-11-17 05:31:22 -05:00
|
|
|
steps:
|
2022-04-04 09:12:24 -04:00
|
|
|
- uses: actions/checkout@v3
|
2021-11-17 05:31:22 -05: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:
|
|
|
|
name: Test pipenv (Python ${{ matrix.python-version}}, ${{ matrix.os }})
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
2022-06-29 17:41:39 -04:00
|
|
|
python-version: ['3.9', 'pypy-3.9-v7.x']
|
2021-11-17 05:31:22 -05:00
|
|
|
steps:
|
2022-04-04 09:12:24 -04:00
|
|
|
- uses: actions/checkout@v3
|
2021-11-17 05:31:22 -05:00
|
|
|
- name: Setup Python
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
cache: 'pipenv'
|
2022-04-04 09:12:24 -04:00
|
|
|
cache-dependency-path: '**/pipenv-requirements.txt'
|
2022-01-26 10:54:54 -05:00
|
|
|
- name: Install pipenv
|
2022-06-29 13:09:14 -04:00
|
|
|
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
|
2021-11-17 05:31:22 -05:00
|
|
|
- name: Install dependencies
|
2022-06-29 14:16:07 -04:00
|
|
|
shell: pwsh
|
2022-04-04 09:12:24 -04:00
|
|
|
run: |
|
2022-06-29 13:09:14 -04:00
|
|
|
mv ./__tests__/data/Pipfile.lock .
|
|
|
|
mv ./__tests__/data/Pipfile .
|
2022-06-29 14:28:20 -04:00
|
|
|
if ("${{ matrix.python-version }}" -Match "pypy") {
|
2022-06-29 14:16:07 -04:00
|
|
|
pipenv install --keep-outdated --python pypy
|
2022-06-29 14:38:02 -04:00
|
|
|
} else {
|
|
|
|
pipenv install --keep-outdated --python ${{ matrix.python-version }}
|
2022-06-29 14:16:07 -04:00
|
|
|
}
|