Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
try again with workflow_call
Browse files Browse the repository at this point in the history
berland committed Dec 16, 2024
1 parent 6a0d373 commit 602eb5d
Showing 2 changed files with 26 additions and 8 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -69,6 +69,18 @@ jobs:
python-version: ${{ matrix.python-version }}
secrets: inherit

test-ert-with-flow:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
python-version: [ '3.11', '3.12' ]
uses: ./.github/workflows/test_ert_with_flow.yml
with:
os: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}
secrets: inherit

test-mac-ert:
if: github.ref_type != 'tag' # when not tag
strategy:
22 changes: 14 additions & 8 deletions .github/workflows/test_ert_with_flow.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,34 @@
on:
push:
branches:
- "main"
pull_request:
workflow_dispatch:
workflow_call:
inputs:
os:
type: string
python-version:
type: string

env:
UV_SYSTEM_PYTHON: 1

jobs:
test-ert-with-flow:
name: Run ert tests
timeout-minutes: 20
runs-on: ubuntu-latest
runs-on: ${{ inputs.os }}

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
id: setup_python
with:
python-version: 3.12
python-version: ${{ inputs.python-version }}

- name: Install uv
uses: astral-sh/setup-uv@v4

- name: Install ert
run:
pip install ".[dev]"
uv pip install ".[dev]"

- name: Install flow
run: |

0 comments on commit 602eb5d

Please sign in to comment.