From 3359e9559bae914fe1ec08458ca463285f53db2a Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Mon, 7 Nov 2022 13:19:29 +0100 Subject: [PATCH] add possible fix for CI --- .github/workflows/e2e-cache.yml | 64 ++++++++++++++++++++++++++------- 1 file changed, 51 insertions(+), 13 deletions(-) diff --git a/.github/workflows/e2e-cache.yml b/.github/workflows/e2e-cache.yml index 63bdc47e..2e903a48 100644 --- a/.github/workflows/e2e-cache.yml +++ b/.github/workflows/e2e-cache.yml @@ -21,9 +21,9 @@ jobs: fail-fast: false matrix: 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: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup Python uses: ./ with: @@ -39,18 +39,48 @@ jobs: fail-fast: false matrix: 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: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup Python uses: ./ with: python-version: ${{ matrix.python-version }} cache: 'pipenv' - name: Install pipenv - run: pipx install pipenv + run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python - 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: name: Test pip (Python ${{ matrix.python-version}}, ${{ matrix.os }}) @@ -59,9 +89,9 @@ jobs: fail-fast: false matrix: 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: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup Python uses: ./ with: @@ -78,16 +108,24 @@ jobs: fail-fast: false matrix: 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: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup Python uses: ./ with: python-version: ${{ matrix.python-version }} cache: 'pipenv' - cache-dependency-path: '**/requirements-linux.txt' + cache-dependency-path: '**/pipenv-requirements.txt' - name: Install pipenv - run: pipx install pipenv + run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python - name: Install dependencies - run: pipenv install numpy \ No newline at end of file + 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 }} + } \ No newline at end of file