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 7e49a97
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 46 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.

13 changes: 11 additions & 2 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,18 @@ 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 }}
python-version: ${{ inputs.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() }}
Expand Down
30 changes: 25 additions & 5 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,9 +34,18 @@ 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 }}
python-version: ${{ inputs.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
Expand All @@ -47,15 +56,26 @@ jobs:
python-version: ["3.8", "3.9", "3.10", "3.11"]
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 }}
python-version: ${{ inputs.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: |
Expand Down

0 comments on commit 7e49a97

Please sign in to comment.