From 4553edb908e841c5ee1c448808c7ab115eada612 Mon Sep 17 00:00:00 2001 From: Jan Range Date: Wed, 22 May 2024 07:38:18 +0200 Subject: [PATCH] add test workflow --- .github/workflows/tests.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..6f6a57d --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,26 @@ +name: Unit tests +on: [push] + +env: + CARGO_TERM_COLOR: always + +jobs: + custom_test: + runs-on: ubuntu-latest + name: Test pyDataverse + env: + PORT: 8080 + steps: + - name: "Checkout" + uses: "actions/checkout@v4" + - name: Run Dataverse Action + id: dataverse + uses: gdcc/dataverse-action@main + - name: Build + run: cargo build --verbose + - name: Run tests + env: + API_TOKEN: ${{ steps.dataverse.outputs.api_token }} + BASE_URL: ${{ steps.dataverse.outputs.base_url }} + DV_VERSION: ${{ steps.dataverse.outputs.dv_version }} + run: cargo test --verbose