Skip to content

Commit

Permalink
CI: move actions steps into workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mferrera committed Jun 24, 2024
1 parent 0fbe498 commit 5b6808b
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 44 deletions.
24 changes: 0 additions & 24 deletions .github/actions/build-grid3d-maps/action.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .github/actions/test_setup/action.yml

This file was deleted.

11 changes: 10 additions & 1 deletion .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,19 @@ jobs:
with:
fetch-depth: 0

- uses: "./.github/actions/test_setup"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install grid3d-maps
run: |
pip install -U pip
pip install ".[tests]"
- name: List all installed packages
run: pip freeze

- name: ruff check
if: ${{ always() }}
run: ruff check .
Expand Down
28 changes: 24 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
testing:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest]
include:
- os: macos-latest
Expand All @@ -34,29 +34,49 @@ jobs:
with:
fetch-depth: 0

- uses: "./.github/actions/test_setup"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install grid3d-maps
run: |
python -m pip install -U pip
pip install ".[tests]"
- name: List all installed packages
run: pip freeze

- name: Run test
run: pytest -n 4 tests/test_scripts --disable-warnings

test_vs_ert:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
env:
MPLBACKEND: Agg

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: "./.github/actions/test_setup"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install grid3d-maps
run: |
pip install -U pip
pip install ".[tests]"
- name: List all installed packages
run: pip freeze

- name: Run test vs ERT
run: |
pip install ert
Expand Down

0 comments on commit 5b6808b

Please sign in to comment.