From dd3fb7d470971f52531d04461ac5aa57073fd3d4 Mon Sep 17 00:00:00 2001 From: Noah Stephen Haskell Date: Wed, 29 May 2024 14:52:27 -0500 Subject: [PATCH] use workspace directory as environment variable --- .github/workflows/test-in-new-recruit.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test-in-new-recruit.yml b/.github/workflows/test-in-new-recruit.yml index 7a70f01d..feb7c7fd 100644 --- a/.github/workflows/test-in-new-recruit.yml +++ b/.github/workflows/test-in-new-recruit.yml @@ -8,8 +8,6 @@ jobs: uses: actions/checkout@v4 with: path: horus-heresy - - name: Store CWD in environment variable - run: DEFAULT_DATA_DIRECTORY=$(pwd) - name: Checking out bscopy uses: actions/checkout@v4 with: @@ -18,16 +16,19 @@ jobs: - name: Setting up Python uses: actions/setup-python@v4 with: - python-version: '3.9' + python-version: '3.11' - name: Installing package list run: apt list --installed # Need to fetch reqs if needed - name: Installing all necessary packages run: pip install webdriver-manager selenium - - name: ls to show present files - run: ls - - name: ls to show present files in BSCopy - run: ls BSCopy + - name: Print workspace directory (as that's where we checked out data) + run: echo $DEFAULT_DATA_DIRECTORY + env: + DEFAULT_DATA_DIRECTORY: ${{ github.workspace }} + - name: Run tests run: python3 system/tests/test_game.py working-directory: ./BSCopy + env: + DEFAULT_DATA_DIRECTORY: ${{ github.workspace }}