Skip to content

Commit

Permalink
ci: fix testing on debian13 (pytest install issues)
Browse files Browse the repository at this point in the history
  • Loading branch information
svlobanov committed Oct 27, 2024
1 parent 2f4b324 commit 514ad78
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ jobs:
libpcre2-dev libssl-dev liblua5.1-0-dev kmod python3-pip
libxml2-dev libxslt1-dev zlib1g-dev
iproute2 ppp pppoe isc-dhcp-client timelimit &&
(sudo pip3 install pytest pytest-dependency pytest-order || sudo pip3 install --break-system-packages pytest pytest-dependency pytest-order)"
(sudo apt -y install python3-pytest python3-pytest-dependency python3-pytest-order ||
sudo pip3 install pytest pytest-dependency pytest-order ||
sudo pip3 install --break-system-packages pytest pytest-dependency pytest-order)"
- name: Copy source code to target OS
run: |
tar -Jcf accel-ppp.tar.xz accel-ppp
Expand Down Expand Up @@ -330,7 +332,9 @@ jobs:
- name: Install testing tools (using pip)
run: >
sudo pip3 install pytest pytest-dependency pytest-order || sudo pip3 install --break-system-packages pytest pytest-dependency pytest-order
sudo apt -y install python3-pytest python3-pytest-dependency python3-pytest-order ||
sudo pip3 install pytest pytest-dependency pytest-order ||
sudo pip3 install --break-system-packages pytest pytest-dependency pytest-order
- name: Check out repository code
uses: actions/checkout@v4
Expand Down Expand Up @@ -381,9 +385,11 @@ jobs:
libpcre2-dev libssl-dev liblua5.1-0-dev kmod python3-pip
iproute2 ppp pppoe isc-dhcp-client
- name: Install testing tools (using pip)
- name: Install testing tools
run: >
sudo pip3 install pytest pytest-dependency pytest-order gcovr || sudo pip3 install --break-system-packages pytest pytest-dependency pytest-order gcovr
sudo apt -y install python3-pytest python3-pytest-dependency python3-pytest-order gcovr ||
sudo pip3 install pytest pytest-dependency pytest-order gcovr ||
sudo pip3 install --break-system-packages pytest pytest-dependency pytest-order gcovr
- name: Check out repository code
uses: actions/checkout@v4
Expand Down

0 comments on commit 514ad78

Please sign in to comment.