mirror of
https://github.com/actions/setup-python.git
synced 2025-04-24 15:32:13 +00:00
add possible fix for CI
This commit is contained in:
parent
eeb41ade5a
commit
3359e9559b
1 changed files with 51 additions and 13 deletions
64
.github/workflows/e2e-cache.yml
vendored
64
.github/workflows/e2e-cache.yml
vendored
|
@ -21,9 +21,9 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
python-version: ['3.8', '3.9', 'pypy-3.7-v7.x']
|
python-version: ['3.9', 'pypy-3.7-v7.x']
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
|
@ -39,18 +39,48 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
python-version: ['3.8', '3.9', 'pypy-3.7-v7.x']
|
python-version: ['3.9', 'pypy-3.9-v7.x']
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
cache: 'pipenv'
|
cache: 'pipenv'
|
||||||
- name: Install pipenv
|
- name: Install pipenv
|
||||||
run: pipx install pipenv
|
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pipenv install numpy
|
shell: pwsh
|
||||||
|
run: |
|
||||||
|
mv ./__tests__/data/Pipfile.lock .
|
||||||
|
mv ./__tests__/data/Pipfile .
|
||||||
|
if ("${{ matrix.python-version }}" -Match "pypy") {
|
||||||
|
pipenv install --keep-outdated --python pypy
|
||||||
|
} else {
|
||||||
|
pipenv install --keep-outdated --python ${{ matrix.python-version }}
|
||||||
|
}
|
||||||
|
|
||||||
|
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]
|
||||||
|
python-version: ['3.9', 'pypy-3.8']
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Install poetry
|
||||||
|
run: pipx install poetry
|
||||||
|
- name: Init pyproject.toml
|
||||||
|
run: mv ./__tests__/data/pyproject.toml .
|
||||||
|
- name: Setup Python
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
cache: 'poetry'
|
||||||
|
- name: Install dependencies
|
||||||
|
run: poetry install
|
||||||
|
|
||||||
python-pip-dependencies-caching-path:
|
python-pip-dependencies-caching-path:
|
||||||
name: Test pip (Python ${{ matrix.python-version}}, ${{ matrix.os }})
|
name: Test pip (Python ${{ matrix.python-version}}, ${{ matrix.os }})
|
||||||
|
@ -59,9 +89,9 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
python-version: ['3.8', '3.9', 'pypy-3.7-v7.x']
|
python-version: ['3.9', 'pypy-3.7-v7.x']
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
|
@ -78,16 +108,24 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
python-version: ['3.8', '3.9', 'pypy-3.7-v7.x']
|
python-version: ['3.9', 'pypy-3.9-v7.x']
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
cache: 'pipenv'
|
cache: 'pipenv'
|
||||||
cache-dependency-path: '**/requirements-linux.txt'
|
cache-dependency-path: '**/pipenv-requirements.txt'
|
||||||
- name: Install pipenv
|
- name: Install pipenv
|
||||||
run: pipx install pipenv
|
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pipenv install numpy
|
shell: pwsh
|
||||||
|
run: |
|
||||||
|
mv ./__tests__/data/Pipfile.lock .
|
||||||
|
mv ./__tests__/data/Pipfile .
|
||||||
|
if ("${{ matrix.python-version }}" -Match "pypy") {
|
||||||
|
pipenv install --keep-outdated --python pypy
|
||||||
|
} else {
|
||||||
|
pipenv install --keep-outdated --python ${{ matrix.python-version }}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue