Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/actions/SetupEnvironment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ runs:

steps:
- name: 🐍 Setup Mambaforge
uses: conda-incubator/setup-miniconda@v3
uses: conda-incubator/setup-miniconda@v4
with:
miniforge-version: latest
# miniforge-variant: Mambaforge
# use-mamba: true # mambaforge is now deprecated in favor of miniforge
activate-environment: hypercp

- name: 🔂 Cache Environment
uses: actions/cache@v4
uses: actions/cache@v6
with:
path: ${{ env.CONDA }}/envs
key:
Expand Down
19 changes: 12 additions & 7 deletions .github/workflows/ApplicationTesting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
7 changes: 3 additions & 4 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
2 changes: 1 addition & 1 deletion .github/workflows/Pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
4 changes: 2 additions & 2 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

steps:
- name: Download All Artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
merge-multiple: True

Expand All @@ -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: |
Expand Down
Loading