diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6a49223b2..8579c0f0a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,22 +40,25 @@ jobs: ghcr.io/eit-alive/eittestdata:latest sh -c 'set -xe ; cd /ci ; - python -m pip install ".[dev,publishing]" ; + python${{ matrix.python-version }} -m pip install ".[dev,publishing]" ; pytest -v ; - python -m build' + python${{ matrix.python-version }} -m build' lint: if: github.event.pull_request.draft == false name: Linting build - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: fail-fast: false + matrix: + os: ["ubuntu-latest"] + python-version: ["3.10"] steps: - uses: actions/checkout@v3 - name: Set up Python 3.10 uses: actions/setup-python@v3 with: - python-version: "3.10" + python-version: ${{ matrix.python-version }} - name: Python info shell: bash -l {0} run: | @@ -71,9 +74,12 @@ jobs: coveralls: if: github.event.pull_request.draft == false name: Coveralls build - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: fail-fast: false + matrix: + os: ["ubuntu-latest"] + python-version: ["3.10"] steps: - uses: actions/checkout@v3 - name: Connect to Container Registry @@ -90,12 +96,12 @@ jobs: -e EIT_PROCESSING_TEST_DATA=/eitprocessing -e GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} -e COVERALLS_REPO_TOKEN=${{ secrets.COVERALLS_REPO_TOKEN }} - -e COVERALLS_FLAG_NAME=python-${{ matrix.version }} + -e COVERALLS_FLAG_NAME=python-${{ matrix.python-version }} ghcr.io/eit-alive/eittestdata:latest sh -c 'set -xe ; cd /ci ; - python -m pip install --upgrade pip setuptools ; - python -m pip install ".[dev,publishing]" ; + python${{ matrix.python-version }} -m pip install --upgrade pip setuptools ; + python${{ matrix.python-version }} -m pip install ".[dev,publishing]" ; pytest --cov --cov-append --cov-report xml --cov-report term --cov-report html ; coveralls --service=github ; - python -m build' + python${{ matrix.python-version }} -m build'