From 57f8b70caaaf2a80bf76dbb54414e6bd023ba8bc Mon Sep 17 00:00:00 2001 From: wpbonelli Date: Thu, 19 Oct 2023 09:55:14 -0400 Subject: [PATCH] refactor: schedule warning outages, drop branch filters from push trigger (#26) * 10% chance of failure, warning to migrate to fortran-lang/setup-fortran * remove branch filters from push trigger in ci.yml and integration.yml --- .github/workflows/ci.yml | 4 +--- .github/workflows/integration.yml | 6 +++--- README.md | 4 +++- action.yml | 12 +++++++++--- 4 files changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 16c61ca..d21b2e1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,9 +1,6 @@ name: CI on: push: - branches: - - main - - develop* paths-ignore: - '**.md' pull_request: @@ -16,6 +13,7 @@ jobs: test: name: Test runs-on: ${{ matrix.os }} + continue-on-error: true strategy: fail-fast: false matrix: diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index ab2a302..4d5cac6 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -1,9 +1,6 @@ name: Integration testing on: push: - branches: - - main - - develop* paths-ignore: - '**.md' pull_request: @@ -14,10 +11,12 @@ on: - '**.md' schedule: - cron: '0 6 * * *' # run at 6 AM UTC every day + jobs: test_modflow: name: Test modflow6 integration runs-on: ${{ matrix.os }} + continue-on-error: true strategy: fail-fast: false matrix: @@ -135,6 +134,7 @@ jobs: test_pymake: name: Test pymake integration runs-on: ${{ matrix.os }} + continue-on-error: true strategy: fail-fast: false matrix: diff --git a/README.md b/README.md index 3cfdf0e..47f9b4a 100644 --- a/README.md +++ b/README.md @@ -6,11 +6,12 @@ An action to install and cache [Intel OneAPI](https://www.intel.com/content/www/us/en/developer/tools/oneapi/fortran-compiler.html#gs.bksc2p) Fortran and C/C++ compilers via the [HPC Toolkit](https://www.intel.com/content/www/us/en/developer/tools/oneapi/hpc-toolkit.html#gs.g10hgy). -**Note:** [`awvwgk/setup-fortran`](https://github.com/awvwgk/setup-fortran) is recommended. Maintenance of this action will cease in 2024. +**Note:** Maintenance of this action will cease in 2024. [`fortran-lang/setup-fortran`](https://github.com/fortran-lang/setup-fortran) is recommended instead. This action will disable itself 10% of the time until then (to avoid this, use a previous tag). + - [Overview](#overview) - [Usage](#usage) - [Environment variables](#environment-variables) @@ -20,6 +21,7 @@ An action to install and cache [Intel OneAPI](https://www.intel.com/content/www/ - [Setting oneAPI variables on Linux/macOS](#setting-oneapi-variables-on-linuxmacos) - [Setting oneAPI variables on Windows](#setting-oneapi-variables-on-windows) - [`cache`](#cache) + - [`ignore`](#ignore) - [Outputs](#outputs) - [`cache-hit`](#cache-hit) - [Windows caveats](#windows-caveats) diff --git a/action.yml b/action.yml index a9476ba..ab01f3b 100644 --- a/action.yml +++ b/action.yml @@ -21,11 +21,17 @@ runs: using: composite steps: - - name: Deprecation warning + - name: Migration warning shell: bash run: | - echo "WARNING: This action will be archived on 01/01/24 in light of better alternatives." - echo "Please use awvwgk/setup-fortran instead (https://github.com/awvwgk/setup-fortran)." + echo "WARNING: This action will be archived on 01/01/24." + echo "Use fortran-lang/setup-fortran instead (https://github.com/fortran-lang/setup-fortran)." + + - name: Migration brownout + uses: wpbonelli/schedule-outage@v1 + with: + probability: 0.1 + message: "This action will be archived on 01/01/24. Use fortran-lang/setup-fortran instead (https://github.com/fortran-lang/setup-fortran)." - name: Set install path if: runner.os != 'Windows'