Skip to content

Commit

Permalink
skip era5 test
Browse files Browse the repository at this point in the history
  • Loading branch information
weiqi-tori committed Oct 11, 2024
1 parent 40fa675 commit 34a549f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
10 changes: 0 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,6 @@ jobs:
matrix:
python-version: ["3.10"]
steps:
- 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 Down
2 changes: 1 addition & 1 deletion tests/test_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_built_up_height():
data = BuiltUpHeight().get_data(BBOX)
assert np.size(data) > 0

# @pytest.mark.skip(reason="CDS API needs personal access token file to run")
@pytest.mark.skip(reason="CDS API needs personal access token file to run")
def test_era_5_hottest_day():
data = Era5HottestDay().get_data(BBOX)
assert np.size(data) > 0
Expand Down
2 changes: 1 addition & 1 deletion tests/test_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def test_built_land_without_tree_cover():
assert expected_zone_size == actual_indicator_size


# @pytest.mark.skip(reason="CDS API needs personal access token file to run")
@pytest.mark.skip(reason="CDS API needs personal access token file to run")
def test_era_5_met_preprocess():
indicator = era_5_met_preprocessing(ZONES)
assert len(indicator) == 24
Expand Down

0 comments on commit 34a549f

Please sign in to comment.