From 7757a790b1448877ff94ffcb0d0f07d20b38f9f8 Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Wed, 21 Aug 2024 15:26:04 +0200 Subject: [PATCH] Create virtual env --- .github/workflows/automatic_local_testing.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/automatic_local_testing.yml b/.github/workflows/automatic_local_testing.yml index c03b2243..5f9e7139 100644 --- a/.github/workflows/automatic_local_testing.yml +++ b/.github/workflows/automatic_local_testing.yml @@ -21,14 +21,23 @@ jobs: runs-on: self-hosted steps: + - name: Clean current working directory + run: | + pwd + rm -rf . - uses: actions/checkout@v2 - - name: Activate virtual env + - name: Create and activate virtual env run: | - source _work/runner-env/bin/activate + pwd + python3 -m venv runner-env + source runner-env/bin/activate - name: Install simpa run: | python -m pip install --upgrade pip python -m pip install . - name: Testing run: | - python simpa_examples/optical_and_acoustic_simulation.py \ No newline at end of file + python simpa_examples/optical_and_acoustic_simulation.py + - name: Deactivate virtual env + run: | + deactivate \ No newline at end of file