Test cache inputs #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test cache inputs | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
required: true | |
jobs: | |
test-pip-cache: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: colesbury/setup-python@ft-wip | |
id: test1 | |
with: | |
python-version: ${{ inputs.version }} | |
cache: 'pip' | |
- run: echo '${{ steps.test1.outputs.python-version }}' | |
- run: pip install -r requirements.txt | |
test-poetry-cache: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install poetry | |
run: pipx install poetry | |
- name: Set up Python | |
uses: colesbury/setup-python@ft-wip | |
id: test2 | |
with: | |
python-version: ${{ inputs.version }} | |
cache: 'poetry' | |
- run: echo '${{ steps.test2.outputs.python-version }}' | |
- run: poetry install --no-root | |
test-pipenv-cache: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: colesbury/setup-python@ft-wip | |
id: test3 | |
with: | |
python-version: ${{ inputs.version }} | |
cache: 'pipenv' | |
- run: echo '${{ steps.test3.outputs.python-version }}' | |
- name: Install pipenv | |
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python | |
- run: pipenv install |