Skip to content

Commit

Permalink
CI: Update actions using deprecated node.js
Browse files Browse the repository at this point in the history
Also removes some redundant matrix strategies with non-matrix setups,
adds some formatting, and specifies an accidentally omitted Python
version.
  • Loading branch information
mferrera committed Apr 2, 2024
1 parent 1914659 commit c20b3f6
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-fmudataio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v4

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

Expand Down
16 changes: 5 additions & 11 deletions .github/workflows/fmudataio-documention.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,23 @@
# build and test some end points
name: Build and deploy docs for fmu-dataio

# on: [push, pull_request]

on:
pull_request:
branches: [main]
push:
branches: [main]

jobs:
build_pywheels:
name: PY ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.10"]
os: [ubuntu-latest]
build_docs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

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

- name: Install and build docs
run: |
Expand All @@ -34,6 +27,7 @@ jobs:
pip install git+https://github.com/equinor/fmu-config
sh examples/run_examples.sh
sphinx-build -b html docs build/docs/html
- name: Update GitHub pages
if: github.repository_owner == 'equinor' && github.ref == 'refs/heads/main'
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fmudataio-publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v4

- name: Set up Python 3.10
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"

Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,24 @@ on: [push, pull_request]
jobs:
linting:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]

steps:
- uses: actions/checkout@v4

- name: Set up python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Install dev-env.
run: |
pip install -U pip
pip install ".[dev]"
- name: Ruff check
if: ${{ always() }}
run: ruff check .

- name: Ruff format
if: ${{ always() }}
run: ruff format . --check
3 changes: 2 additions & 1 deletion .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ jobs:
strategy:
matrix:
python-version: ["3.8", "3.10"]

steps:
- uses: actions/checkout@v4

- name: Set up python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/schemas-up-to-date.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: "3.10"

- name: Install dependencies
run: |
Expand Down

0 comments on commit c20b3f6

Please sign in to comment.