Skip to content

Commit

Permalink
ci: make os and python version explicit in all build actions
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniBodor committed Jun 18, 2024
1 parent 2eb8544 commit 051c504
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand All @@ -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'

0 comments on commit 051c504

Please sign in to comment.