Skip to content

Commit

Permalink
try update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
weiqi-tori committed Sep 27, 2024
1 parent 3f2989c commit 5cebf72
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/dev_ci_cd_conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,20 @@ jobs:
matrix:
python-version: ["3.10"]
steps:
- name: Preserve $HOME set in the container
- name: Set up .cdsapirc
run: |
echo $HOME
echo HOME=$HOME >> "$GITHUB_ENV"
- name: Add ERA5 API key
run: |
cat <<EOF > $HOME/.cdsapirc
url: ${{ secrets.ERA5_URL }}
key: ${{ secrets.ERA5_KEY }}
EOF
echo "url: ${{ secrets.ERA5_URL }}" > ~/.cdsapirc
echo "key: ${{ secrets.ERA5_KEY }}" >> ~/.cdsapirc
# - name: Preserve $HOME set in the container
# run: |
# echo $HOME
# echo HOME=$HOME >> "$GITHUB_ENV"
# - name: Add ERA5 API key
# run: |
# cat <<EOF > $HOME/.cdsapirc
# url: ${{ secrets.ERA5_URL }}
# key: ${{ secrets.ERA5_KEY }}
# EOF
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v2
with:
Expand All @@ -43,4 +47,4 @@ jobs:
GOOGLE_APPLICATION_USER: ${{ secrets.GOOGLE_APPLICATION_USER }}
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
run: |
pytest
pytest tests

0 comments on commit 5cebf72

Please sign in to comment.