From a7fb8631d35d2b6fdced32ec9e9666c7408d9629 Mon Sep 17 00:00:00 2001 From: "T.Tian" Date: Thu, 28 Sep 2023 17:11:42 +0800 Subject: [PATCH] add test with sparc output file downloader --- .github/workflows/installation_test.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/installation_test.yml b/.github/workflows/installation_test.yml index cde962a6..840b426d 100644 --- a/.github/workflows/installation_test.yml +++ b/.github/workflows/installation_test.yml @@ -37,6 +37,11 @@ jobs: pip install -e ".[test]" # Download the external psp data python -m sparc.download_data + - name: Download SPARC output files to SPARC-master + run: | + wget https://github.com/SPARC-X/SPARC/archive/refs/heads/master.zip + unzip master.zip + export SPARC_TESTS_DIR="./SPARC-master/tests" - name: Test with pytest run: | # python -m pytest -svv tests/ --cov=sparc --cov-report=json --cov-report=html @@ -46,6 +51,7 @@ jobs: COVERAGE=`cat coverage.json | jq .totals.percent_covered | xargs printf '%.*f' 0` echo "Current coverage is $COVERAGE" echo "COVPERCENT=$COVERAGE" >> $GITHUB_ENV + - name: Lint with flake8 run: | echo $CONDA_PREFIX