diff --git a/.github/workflows/ci-fmudataio.yml b/.github/workflows/ci-fmudataio.yml index 0a5cb73c2..4ffab2f31 100644 --- a/.github/workflows/ci-fmudataio.yml +++ b/.github/workflows/ci-fmudataio.yml @@ -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 }} diff --git a/.github/workflows/fmudataio-documention.yml b/.github/workflows/fmudataio-documention.yml index a9df385fe..96044d97c 100644 --- a/.github/workflows/fmudataio-documention.yml +++ b/.github/workflows/fmudataio-documention.yml @@ -1,8 +1,6 @@ # build and test some end points name: Build and deploy docs for fmu-dataio -# on: [push, pull_request] - on: pull_request: branches: [main] @@ -10,21 +8,16 @@ on: 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: | @@ -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: | diff --git a/.github/workflows/fmudataio-publish-pypi.yml b/.github/workflows/fmudataio-publish-pypi.yml index 12f1a0870..504b687a0 100644 --- a/.github/workflows/fmudataio-publish-pypi.yml +++ b/.github/workflows/fmudataio-publish-pypi.yml @@ -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" diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 2478b0056..d7d70357e 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -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 diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index 28d9ac610..533fca782 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -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 }} diff --git a/.github/workflows/schemas-up-to-date.yml b/.github/workflows/schemas-up-to-date.yml index 2e21aca63..3466c5cc5 100644 --- a/.github/workflows/schemas-up-to-date.yml +++ b/.github/workflows/schemas-up-to-date.yml @@ -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: |