From 6e438852c8220f3ab3d598a5cf40559c32cb3d06 Mon Sep 17 00:00:00 2001 From: Anshuman Suri Date: Wed, 10 Jan 2024 09:47:44 -0500 Subject: [PATCH] Workflows updated again --- .github/workflows/documentation.yml | 6 +++++- .github/workflows/test.yml | 7 ++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 5c928bc..fb88920 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -6,10 +6,14 @@ on: - main # or your default branch jobs: - build-documentation: + setup-environment: runs-on: ubuntu-latest uses: ./.github/workflows/setup_env.yml + build-documentation: + runs-on: ubuntu-latest + needs: setup-environment + steps: - name: Generate Documentation run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 483d511..db95a20 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,10 +3,15 @@ name: Tests on: [push, pull_request] jobs: - test: + setup-environment: runs-on: ubuntu-latest uses: ./.github/workflows/setup_env.yml + test: + runs-on: ubuntu-latest + needs: setup-environment + + steps: - name: Run tests run: | pytest