diff --git a/.github/actions/SetupEnvironment/action.yml b/.github/actions/SetupEnvironment/action.yml index ce37f616..5b4258a2 100644 --- a/.github/actions/SetupEnvironment/action.yml +++ b/.github/actions/SetupEnvironment/action.yml @@ -6,7 +6,7 @@ runs: steps: - name: ๐Ÿ Setup Mambaforge - uses: conda-incubator/setup-miniconda@v3 + uses: conda-incubator/setup-miniconda@v4 with: miniforge-version: latest # miniforge-variant: Mambaforge @@ -14,7 +14,7 @@ runs: activate-environment: hypercp - name: ๐Ÿ”‚ Cache Environment - uses: actions/cache@v4 + uses: actions/cache@v6 with: path: ${{ env.CONDA }}/envs key: diff --git a/.github/workflows/ApplicationTesting.yml b/.github/workflows/ApplicationTesting.yml index 9191a150..30e72b77 100644 --- a/.github/workflows/ApplicationTesting.yml +++ b/.github/workflows/ApplicationTesting.yml @@ -18,13 +18,11 @@ jobs: strategy: fail-fast: false matrix: - os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ] + os: [ 'ubuntu-latest' , 'macos-latest', 'windows-latest' ] steps: - name: โฌ Checkout repository - uses: actions/checkout@v4 - with: - ref: ${{ github.event.inputs.branch }} + uses: actions/checkout@v7 - name: ๐Ÿ”ง Setup Environment uses: ./.github/actions/SetupEnvironment @@ -33,15 +31,22 @@ jobs: env: CDSAPIRC: ${{ secrets.ECMWF_ADS_CREDENTIALS }} run: | - echo "$CDSAPIRC" >> ~/.ecmwf_ads_credentials.json + echo "$CDSAPIRC" > ~/.ecmwf_ads_credentials.json - name: ๐Ÿ”‘ Get GMAO MERRA2 Credentials env: NETRC: ${{ secrets.NETRC }} run: | - echo "$NETRC" >> ~/.netrc + echo "$NETRC" > ~/.netrc + chmod 600 "$HOME/.netrc" + + - name: Disable IPv6 for EarthData access on Linux + if: runner.os == 'Linux' + run: | + sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1 + sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1 - name: ๐Ÿงช Run Tests run: | python -m unittest Tests.test_filing - python -m unittest Tests.test_sample_data + python -m unittest Tests.test_sample_data diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index 02efd566..820ad9cd 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -25,9 +25,7 @@ jobs: steps: - name: โฌ Checkout repository - uses: actions/checkout@v4 - with: - ref: ${{ github.event.inputs.branch }} + uses: actions/checkout@v7 - name: ๐Ÿ”ง Setup Environment uses: ./.github/actions/SetupEnvironment @@ -46,9 +44,10 @@ jobs: filename: '${{ env.BUNDLE_NAME }}.zip' - name: โซ๏ธ Upload Bundle - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: ${{ env.BUNDLE_NAME }} path: Bundled/dist/${{ env.BUNDLE_NAME }}.zip compression-level: 0 + if-no-files-found: error # Double zip as need zip for release page (ideally want to prevent unzip from download artifact) diff --git a/.github/workflows/Pipeline.yml b/.github/workflows/Pipeline.yml index bb7db0cc..c5baeec0 100644 --- a/.github/workflows/Pipeline.yml +++ b/.github/workflows/Pipeline.yml @@ -30,7 +30,7 @@ jobs: steps: - name: Delete Artifact if: startsWith(github.ref, 'refs/heads/master') || startsWith(github.ref, 'refs/tags') - uses: geekyeggo/delete-artifact@v4 + uses: geekyeggo/delete-artifact@v6 with: name: ${{ needs.Build.outputs.files }} token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index eefe756b..f389bb1e 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -18,7 +18,7 @@ jobs: steps: - name: Download All Artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: merge-multiple: True @@ -40,7 +40,7 @@ jobs: echo "EOF" >> $GITHUB_OUTPUT - name: Create Release Page - uses: softprops/action-gh-release@v2 + uses: softprops/action-gh-release@v3 with: files: ${{ steps.get_variables.outputs.artifacts }} body: |