From 8f67f45a84ce3784e0770f33e12277d05628aa6f Mon Sep 17 00:00:00 2001 From: Hays Chan <25737801+hayschan@users.noreply.github.com> Date: Mon, 3 Jun 2024 19:20:14 +0800 Subject: [PATCH] chore: Update build and test workflow configuration to use requirements.txt for Python package installation --- .github/workflows/build_and_test.yml | 6 +----- requirements.txt | 4 ++++ 2 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 requirements.txt diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index d4ded0f..57e0945 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -81,11 +81,7 @@ jobs: with: name: built_binaries_${{ matrix.target }}_${{ matrix.idf-branch }} - name: Install Python packages for PyTest - run: | - pip install \ - pytest-embedded \ - pytest-embedded-serial-esp \ - pytest-embedded-idf + run: pip install -r requirements.txt - name: Run Test App in WokWi Simulator run: | pytest ${{ env.test_dirs }} \ diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..5b286ae --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +pytest-embedded +pytest-embedded-serial-esp +pytest-embedded-idf +pytest-embedded-wokwi