From 8e2bb46c56043a413e1a6790b9a42378b9793d6b Mon Sep 17 00:00:00 2001 From: Akshay Karle <1443108+akshaykarle@users.noreply.github.com> Date: Thu, 18 Apr 2024 10:25:07 +0100 Subject: [PATCH] use github action to setup env * this is because direnv needs more steps to export PATH, etc. which this action takes care of --- .github/workflows/test.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 9954ad0..8c2e163 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,4 +1,4 @@ -name: Test and Build +name: "Test and Build" on: [push] @@ -8,14 +8,13 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Setup - run: ./setup.sh - shell: bash + - name: "Setup env" + uses: JRMurr/direnv-nix-action@v4.1.0 - - name: Install python dependencies + - name: "Install python dependencies" run: poetry install shell: bash - - name: Test + - name: "Test" run: poetry run python -m unittest tests/**.py shell: bash