Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: move actions steps into workflows #128

Merged
merged 1 commit into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading