From 71a0773127818e06218cf887a52451a2f70007d1 Mon Sep 17 00:00:00 2001 From: Francesco Bartoli Date: Fri, 5 Apr 2024 20:08:42 +0200 Subject: [PATCH] Add variable for home directory Add variable for home directory --- .github/workflows/tests.yml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ca39767..2133d19 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,18 +12,18 @@ jobs: fail-fast: false matrix: include: - - { python: "3.10", os: "ubuntu-20.04", session: "pre-commit" } - - { python: "3.10", os: "ubuntu-20.04", session: "safety" } - - { python: "3.10", os: "ubuntu-20.04", session: "bandit" } - - { python: "3.10", os: "ubuntu-20.04", session: "mypy" } - - { python: "3.9", os: "ubuntu-20.04", session: "mypy" } - - { python: "3.10", os: "ubuntu-20.04", session: "tests" } - - { python: "3.9", os: "ubuntu-20.04", session: "tests" } + - { python: "3.10", os: "ubuntu-22.04", session: "pre-commit" } + - { python: "3.10", os: "ubuntu-22.04", session: "safety" } + - { python: "3.10", os: "ubuntu-22.04", session: "bandit" } + - { python: "3.10", os: "ubuntu-22.04", session: "mypy" } + - { python: "3.9", os: "ubuntu-22.04", session: "mypy" } + - { python: "3.10", os: "ubuntu-22.04", session: "tests" } + - { python: "3.9", os: "ubuntu-22.04", session: "tests" } # - { python: "3.10", os: "windows-latest", session: "tests" } # - { python: "3.10", os: "macos-latest", session: "tests" } - - { python: "3.10", os: "ubuntu-20.04", session: "typeguard" } - - { python: "3.10", os: "ubuntu-20.04", session: "xdoctest" } - - { python: "3.10", os: "ubuntu-20.04", session: "docs-build" } + - { python: "3.10", os: "ubuntu-22.04", session: "typeguard" } + - { python: "3.10", os: "ubuntu-22.04", session: "xdoctest" } + - { python: "3.10", os: "ubuntu-22.04", session: "docs-build" } env: NOXSESSION: ${{ matrix.session }} @@ -41,7 +41,7 @@ jobs: - name: Upgrade pip run: | - pip install --constraint=.github/workflows/constraints.txt pip + pip install --constraint=$GITHUB_WORKSPACE/.github/workflows/constraints.txt pip pip --version - name: Upgrade pip in virtual environments @@ -55,13 +55,13 @@ jobs: - name: Install Poetry run: | - pipx install --pip-args=--constraint=.github/workflows/constraints.txt poetry + pipx install --pip-args=--constraint=$GITHUB_WORKSPACE/.github/workflows/constraints.txt poetry poetry --version - name: Install Nox run: | - pipx install --pip-args=--constraint=.github/workflows/constraints.txt nox - pipx inject --pip-args=--constraint=.github/workflows/constraints.txt nox nox-poetry + pipx install --pip-args=--constraint=$GITHUB_WORKSPACE/.github/workflows/constraints.txt nox + pipx inject --pip-args=--constraint=$GITHUB_WORKSPACE/.github/workflows/constraints.txt nox nox-poetry nox --version - name: Install GDAL @@ -126,18 +126,18 @@ jobs: - name: Upgrade pip run: | - pip install --constraint=.github/workflows/constraints.txt pip + pip install --constraint=$GITHUB_WORKSPACE/.github/workflows/constraints.txt pip pip --version - name: Install Poetry run: | - pipx install --pip-args=--constraint=.github/workflows/constraints.txt poetry + pipx install --pip-args=--constraint=$GITHUB_WORKSPACE/.github/workflows/constraints.txt poetry poetry --version - name: Install Nox run: | - pipx install --pip-args=--constraint=.github/workflows/constraints.txt nox - pipx inject --pip-args=--constraint=.github/workflows/constraints.txt nox nox-poetry + pipx install --pip-args=--constraint=$GITHUB_WORKSPACE/.github/workflows/constraints.txt nox + pipx inject --pip-args=--constraint=$GITHUB_WORKSPACE/.github/workflows/constraints.txt nox nox-poetry nox --version - name: Download coverage data