From 970f70e3988726df8b92d62452ed30dce0e1129c Mon Sep 17 00:00:00 2001 From: PhilippSchmelter Date: Fri, 31 Oct 2025 14:52:45 +0100 Subject: [PATCH 1/2] harmoize ci --- .github/workflows/{simple-ci.yml => ci.yml} | 38 +++++++++++++++------ 1 file changed, 27 insertions(+), 11 deletions(-) rename .github/workflows/{simple-ci.yml => ci.yml} (77%) diff --git a/.github/workflows/simple-ci.yml b/.github/workflows/ci.yml similarity index 77% rename from .github/workflows/simple-ci.yml rename to .github/workflows/ci.yml index e8e254f..fb03811 100644 --- a/.github/workflows/simple-ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: #---------------------------------------------- # load pip cache if cache exists #---------------------------------------------- - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.cache/pip key: ${{ runner.os }}-pip @@ -37,20 +37,23 @@ jobs: test: needs: linting strategy: - fail-fast: true + fail-fast: false matrix: - os: [ "ubuntu-latest", "macos-latest" ] + os: ["ubuntu-latest", "macos-latest", "windows-latest"] python-version: [ "3.11"] runs-on: ${{ matrix.os }} + defaults: + run: + shell: bash steps: #---------------------------------------------- # check-out repo and set-up python #---------------------------------------------- - name: Check out repository - uses: actions/checkout@v3 + uses: actions/checkout@v5 - name: Set up python ${{ matrix.python-version }} id: setup-python - uses: actions/setup-python@v4 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} #---------------------------------------------- @@ -64,9 +67,9 @@ jobs: #---------------------------------------------- # load cached venv if cache exists #---------------------------------------------- - - name: Load cached venv + - name: Load cached Venv id: cached-poetry-dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: .venv key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} @@ -75,16 +78,29 @@ jobs: #---------------------------------------------- - name: Install dependencies if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' - run: poetry install --no-interaction --no-root + run: poetry install --no-interaction #---------------------------------------------- # install your root project, if required #---------------------------------------------- - name: Install library - run: poetry install --no-interaction --no-root + run: poetry install --no-interaction #---------------------------------------------- # run test suite #---------------------------------------------- - - name: Run tests + - name: Run tests (Linux, full) + if: matrix.os == 'ubuntu-latest' run: | source .venv/bin/activate - pytest tests/ \ No newline at end of file + pytest tests/ + + - name: Run tests (macOS) + if: matrix.os == 'macos-latest' + run: | + source .venv/bin/activate + pytest tests/ + + - name: Run tests (Windows) + if: matrix.os == 'windows-latest' + run: | + source .venv/Scripts/activate + pytest tests/ From b5c4f73ded571e105812ffa84c4053bdb1c8d7a6 Mon Sep 17 00:00:00 2001 From: PhilippSchmelter Date: Fri, 31 Oct 2025 14:56:25 +0100 Subject: [PATCH 2/2] final --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fb03811..a18e2ee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,7 +37,7 @@ jobs: test: needs: linting strategy: - fail-fast: false + fail-fast: true matrix: os: ["ubuntu-latest", "macos-latest", "windows-latest"] python-version: [ "3.11"]