Fix deprecation warnings in CI

This commit is contained in:
Florian Bach 2022-10-18 19:54:23 +02:00
parent b05e631418
commit 7a31e54024

View File

@ -8,7 +8,7 @@ jobs:
build: build:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Install compilers - name: Install compilers
run: | run: |
@ -22,7 +22,7 @@ jobs:
./bundle_migration_plugin.sh ./bundle_migration_plugin.sh
- name: Upload - name: Upload
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: calibre-plugins name: calibre-plugins
path: | path: |
@ -32,7 +32,7 @@ jobs:
test-ubuntu-2004: test-ubuntu-2004:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Install dependencies - name: Install dependencies
run: | run: |
@ -41,7 +41,7 @@ jobs:
# Install Python2 stuff # Install Python2 stuff
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
python2 get-pip.py python2 get-pip.py
pip2 install freezegun mock lxml pycryptodome "rsa<=4.3" oscrypto cryptography==3.1 pip2 --no-python-version-warning install freezegun mock lxml pycryptodome "rsa<=4.3" oscrypto cryptography==3.1
- name: Run tests (Python 3) - name: Run tests (Python 3)
run: | run: |
@ -54,7 +54,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@v2 - uses: actions/checkout@v3
- name: Install dependencies - name: Install dependencies
run: | run: |
@ -65,7 +65,7 @@ jobs:
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
sudo apt install python2 sudo apt install python2
python2 get-pip.py python2 get-pip.py
pip2 install freezegun mock lxml pycryptodome "rsa<=4.3" "oscrypto>1.3.0" cryptography==3.1 pip2 --no-python-version-warning install freezegun mock lxml pycryptodome "rsa<=4.3" "oscrypto>1.3.0" cryptography==3.1
- name: Run tests (Python 3) - name: Run tests (Python 3)
run: | run: |
@ -78,7 +78,7 @@ jobs:
test-ubuntu-2204-oscrypto-fork: test-ubuntu-2204-oscrypto-fork:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Install dependencies - name: Install dependencies
run: | run: |
@ -90,8 +90,8 @@ jobs:
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
sudo apt install python2 sudo apt install python2
python2 get-pip.py python2 get-pip.py
pip2 install freezegun mock lxml pycryptodome "rsa<=4.3" cryptography==3.1 pip2 --no-python-version-warning install freezegun mock lxml pycryptodome "rsa<=4.3" cryptography==3.1
pip2 install https://github.com/Leseratte10/acsm-calibre-plugin/releases/download/config/oscrypto_1.3.0_fork_fe39273cc5020.zip pip2 --no-python-version-warning install https://github.com/Leseratte10/acsm-calibre-plugin/releases/download/config/oscrypto_1.3.0_fork_fe39273cc5020.zip
- name: Run tests (Python 3) - name: Run tests (Python 3)
run: | run: |
@ -105,7 +105,7 @@ jobs:
test-windows: test-windows:
runs-on: windows-2022 runs-on: windows-2022
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Install dependencies - name: Install dependencies
run: | run: |
@ -126,7 +126,7 @@ jobs:
- name: Install deps for Python 2 - name: Install deps for Python 2
run: | run: |
# Install Python2 stuff # Install Python2 stuff
python -m pip install freezegun mock lxml pycryptodome "rsa<=4.3" oscrypto cryptography==3.1 python -m pip --no-python-version-warning install freezegun mock lxml pycryptodome "rsa<=4.3" oscrypto cryptography==3.1
- name: Run tests (Python 2) - name: Run tests (Python 2)
run: | run: |
@ -137,7 +137,7 @@ jobs:
test-mac: test-mac:
runs-on: macos-11 runs-on: macos-11
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Install dependencies - name: Install dependencies
run: | run: |
@ -146,7 +146,7 @@ jobs:
# Install Python2 stuff # Install Python2 stuff
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
python2 get-pip.py python2 get-pip.py
pip2 install freezegun mock lxml pycryptodome "rsa<=4.3" oscrypto cryptography==3.1 pip2 --no-python-version-warning install freezegun mock lxml pycryptodome "rsa<=4.3" oscrypto cryptography==3.1
- name: Run tests (Python 3) - name: Run tests (Python 3)
run: | run: |