Fix pipeline again

This commit is contained in:
Florian Bach 2024-05-12 11:26:23 +02:00
parent 633768ed51
commit 7f89a9c6d1

View File

@ -33,7 +33,9 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
strategy: strategy:
matrix: matrix:
python-version: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] # 3.13-dev currently broken due to lxml python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
# 3.5 is broken due to SSL issues? Todo.
# 3.13-dev currently broken due to lxml
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
@ -83,7 +85,7 @@ jobs:
test-ubuntu-2204-oscrypto: test-ubuntu-2204-oscrypto:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@4 - uses: actions/checkout@v4
- name: Install dependencies - name: Install dependencies
id: pip-stuff id: pip-stuff
@ -161,15 +163,22 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
pip3 install -r ./.github/workflows/ci_test_requirements.txt pip3 install -r ./.github/workflows/ci_test_requirements.txt
# Install Python2 stuff
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
python2 get-pip.py
python2 -m pip --no-python-version-warning install -r ./.github/workflows/ci_test_requirements.txt
- name: Run tests (Python 3) - name: Run tests (Python 3)
run: | run: |
cd tests && python3 ./main.py && cd .. cd tests && python3 ./main.py && cd ..
- name: Set up Python 2
uses: actions/setup-python@v5
with:
python-version: "2.7"
- name: Install dependencies
run: |
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
python2 get-pip.py
python2 -m pip --no-python-version-warning install -r ./.github/workflows/ci_test_requirements.txt
- name: Run tests (Python 2) - name: Run tests (Python 2)
run: | run: |
cd tests && PYTHONWARNINGS=ignore python2 ./main.py && cd .. cd tests && PYTHONWARNINGS=ignore python2 ./main.py && cd ..