From 28b2e1e30af7fd1c5d4af639d22e7f25ac725a4b Mon Sep 17 00:00:00 2001 From: cint-transport Date: Fri, 4 Oct 2024 14:15:55 -0600 Subject: [PATCH] tweaks to runner --- .github/test_station.yml | 39 ------------------------------ .github/workflows/test_station.yml | 29 ++++++++++++++++++++++ 2 files changed, 29 insertions(+), 39 deletions(-) delete mode 100644 .github/test_station.yml create mode 100644 .github/workflows/test_station.yml diff --git a/.github/test_station.yml b/.github/test_station.yml deleted file mode 100644 index 5e68462b..00000000 --- a/.github/test_station.yml +++ /dev/null @@ -1,39 +0,0 @@ -# Install the QICK library on the runner (a QICK board) and run tests. -# The FPGA can only be accessed as root, so the tests must run with sudo. -# This pollutes the repo with files owned by root, which interfere with the "clean" step in the checkout action. -# We therefore do the clean manually (with sudo) before checkout. - -name: Test Station - -on: - workflow_dispatch: - pull_request: - paths: - - 'qick_demos/**' - - 'qick_lib/**' - - '**.py' - -permissions: - contents: write - -jobs: - run_test: - runs-on: [self-hosted] - steps: - - name: Clean repo - continue-on-error: true - run: | - git clean -ffdx - git reset --hard HEAD - - uses: actions/checkout@v4 - - name: Install package - run: | - python -m pip install -e . - - name: Test notebooks - run: | - python -m pytest --nbmake --overwrite ./drivers_test_notebooks/srs830_test_notebook.ipynb - # - name: Archive test results - # uses: actions/upload-artifact@v4 - # with: - # name: driver_tests - # path: qick_demos/*.ipynb \ No newline at end of file diff --git a/.github/workflows/test_station.yml b/.github/workflows/test_station.yml new file mode 100644 index 00000000..d34afa50 --- /dev/null +++ b/.github/workflows/test_station.yml @@ -0,0 +1,29 @@ + +name: Test Station + +on: + workflow_dispatch: + pull_request: + branches: + - "main" + + +permissions: + contents: write + +jobs: + run_test: + runs-on: [self-hosted] + steps: + - uses: actions/checkout@v4 + - name: Install package + run: | + python -m pip install -e . + - name: Test notebooks + run: | + python -m pytest --nbmake ./drivers_test_notebooks/srs830_test_notebook.ipynb + # - name: Archive test results + # uses: actions/upload-artifact@v4 + # with: + # name: driver_tests + # path: qick_demos/*.ipynb \ No newline at end of file