From 5ec5cbe7dae63423a243c959719245b7067abbb6 Mon Sep 17 00:00:00 2001 From: Nicklas Larsson Date: Wed, 20 Dec 2023 22:50:28 +0100 Subject: [PATCH] run tests --- .github/workflows/macos.yml | 12 ++++++++++++ .github/workflows/ubuntu.yml | 3 +++ 2 files changed, 15 insertions(+) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 674480a151d..7c45b33c90c 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -59,6 +59,18 @@ jobs: - name: Check installed version shell: bash -l {0} run: source ./.github/workflows/print_versions.sh + - name: Run tests + shell: bash -el {0} + run: > + grass --tmp-location XY --exec \ + g.download.location url=${{ env.SampleData }} path=$HOME + grass --tmp-location XY --exec \ + python3 -m grass.gunittest.main \ + --grassdata $HOME --location nc_spm_full_v2alpha2 --location-type nc \ + --min-success 100 --config .github/workflows/macos_gunittest.cfg + env: + SampleData: "https://grass.osgeo.org/sampledata/north_carolina/\ + nc_spm_full_v2alpha2.tar.gz" - name: Make HTML test report available if: ${{ always() }} uses: actions/upload-artifact@v3 diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index a59f3315995..76c4230a84a 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -74,6 +74,9 @@ jobs: - name: Test executing of the grass command run: .github/workflows/test_simple.sh + - name: Run tests + run: .github/workflows/test_thorough.sh + - name: Make HTML test report available if: ${{ always() }} uses: actions/upload-artifact@v3