From 7c61babb10e2d3d84dbfcc39d4314b64d7d808ce Mon Sep 17 00:00:00 2001 From: Jamie Smith Date: Tue, 10 Oct 2023 13:00:03 -0700 Subject: [PATCH] Fix incorrect requirements line for dotenv (#193) * Fix incorrect requirements line for dotenv * Also use requirements.txt in CI jobs --- .github/workflows/greentea_cmake.yml | 5 ++--- .github/workflows/test_building_multiple_executables.yml | 4 ++++ tools/requirements.txt | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/greentea_cmake.yml b/.github/workflows/greentea_cmake.yml index 0f72c95f4b..b321a18a18 100644 --- a/.github/workflows/greentea_cmake.yml +++ b/.github/workflows/greentea_cmake.yml @@ -10,10 +10,9 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Install the latest mbed-tools + - name: Install Python packages run: | - pip3 install --upgrade mbed-tools - mbedtools --version + python3 -m pip install -r tools/requirements.txt - name: Build NUCLEO_G031K8 with baremetal profile run: | diff --git a/.github/workflows/test_building_multiple_executables.yml b/.github/workflows/test_building_multiple_executables.yml index 111747d06b..334f3ba085 100644 --- a/.github/workflows/test_building_multiple_executables.yml +++ b/.github/workflows/test_building_multiple_executables.yml @@ -9,6 +9,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + + - name: Install Python packages + run: | + python3 -m pip install -r tools/requirements.txt - name: Build the multiple_executables example run: | diff --git a/tools/requirements.txt b/tools/requirements.txt index 95f5fca6d4..dc0e58806e 100644 --- a/tools/requirements.txt +++ b/tools/requirements.txt @@ -7,7 +7,7 @@ prettytable>=2.0,<4.0; python_version >= '3.6' future>=0.18.0,<1.0 jinja2>=2.11.3 intelhex>=2.3.0,<3.0.0 -dotenv +python-dotenv Click>=7.1,<9 GitPython tqdm