2021-11-17 18:31:22 +08: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-19 01:29:05 +08:00
|
|
|
python-version: ['3.9', 'pypy-3.7-v7.x']
|
2021-11-17 18:31:22 +08:00
|
|
|
steps:
|
2022-04-04 21:12:24 +08:00
|
|
|
- uses: actions/checkout@v3
|
2021-11-17 18:31:22 +08: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-02-19 01:29:05 +08:00
|
|
|
python-version: ['3.9', 'pypy-3.7-v7.x']
|
2021-11-17 18:31:22 +08:00
|
|
|
steps:
|
2022-04-04 21:12:24 +08:00
|
|
|
- uses: actions/checkout@v3
|
2021-11-17 18:31:22 +08:00
|
|
|
- name: Setup Python
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
cache: 'pipenv'
|
2022-01-26 23:54:54 +08:00
|
|
|
- name: Install pipenv
|
|
|
|
run: pipx install pipenv
|
2021-11-17 18:31:22 +08:00
|
|
|
- name: Install dependencies
|
2022-04-04 21:12:24 +08:00
|
|
|
run: |
|
|
|
|
cd __tests__/data
|
|
|
|
pipenv install --verbose
|
2021-11-17 18:31:22 +08:00
|
|
|
|
2021-11-24 22:50:35 +08: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 21:02:04 +08:00
|
|
|
python-version: ['3.9', 'pypy-3.8']
|
2021-11-24 22:50:35 +08:00
|
|
|
steps:
|
2022-04-04 21:12:24 +08:00
|
|
|
- uses: actions/checkout@v3
|
2021-11-24 22:50:35 +08:00
|
|
|
- name: Install poetry
|
|
|
|
run: pipx install poetry
|
|
|
|
- name: Setup Python
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
cache: 'poetry'
|
2022-03-29 02:42:47 +08:00
|
|
|
- name: Init pyproject.toml
|
|
|
|
run: poetry init -n
|
2021-11-24 22:50:35 +08:00
|
|
|
- name: Install dependencies
|
|
|
|
run: poetry add flake8
|
|
|
|
|
2021-11-17 18:31:22 +08: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-19 01:29:05 +08:00
|
|
|
python-version: ['3.9', 'pypy-3.7-v7.x']
|
2021-11-17 18:31:22 +08:00
|
|
|
steps:
|
2022-04-04 21:12:24 +08:00
|
|
|
- uses: actions/checkout@v3
|
2021-11-17 18:31:22 +08: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-02-19 01:29:05 +08:00
|
|
|
python-version: ['3.9', 'pypy-3.7-v7.x']
|
2021-11-17 18:31:22 +08:00
|
|
|
steps:
|
2022-04-04 21:12:24 +08:00
|
|
|
- uses: actions/checkout@v3
|
2021-11-17 18:31:22 +08:00
|
|
|
- name: Setup Python
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
cache: 'pipenv'
|
2022-04-04 21:12:24 +08:00
|
|
|
cache-dependency-path: '**/pipenv-requirements.txt'
|
2022-01-26 23:54:54 +08:00
|
|
|
- name: Install pipenv
|
|
|
|
run: pipx install pipenv
|
2021-11-17 18:31:22 +08:00
|
|
|
- name: Install dependencies
|
2022-04-04 21:12:24 +08:00
|
|
|
run: |
|
|
|
|
cd __tests__/data
|
|
|
|
pipenv install --verbose
|