Skip to content

Commit

Permalink
CI: python/pip: use setup-python with a requirements.txt file
Browse files Browse the repository at this point in the history
Signed-off-by: Gary Oberbrunner <[email protected]>
  • Loading branch information
garyo committed May 7, 2024
1 parent 44e922f commit 641348a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,11 @@ jobs:
echo "CONAN_PRESET=conan-$BUILDTYPE_LC" >> $GITHUB_ENV
echo "BUILD_DIR=build/${{ matrix.buildtype }}" >> $GITHUB_ENV
- name: update Python pip
run: |
# Work around PEP 668, "This environment is externally managed"
python3 -mpip install --upgrade pip --break-system-packages
- name: Set up python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'

- name: Install Conan
id: conan
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pip >= 24.0

0 comments on commit 641348a

Please sign in to comment.