Browse Source
Removed the par2 files for the unicode job, they caused too much problems. It's a bad "fix" for #1509.pull/1693/head
10 changed files with 39 additions and 67 deletions
@ -0,0 +1,37 @@ |
|||
name: CI Tests |
|||
|
|||
on: [push, pull_request] |
|||
|
|||
jobs: |
|||
test: |
|||
name: Test ${{ matrix.os }} - Python ${{ matrix.python-version }} |
|||
runs-on: ${{ matrix.os }} |
|||
strategy: |
|||
matrix: |
|||
python-version: [3.6, 3.7, 3.8, 3.9] |
|||
os: [ubuntu-20.04] |
|||
include: |
|||
- os: macos-latest |
|||
python-version: 3.9 |
|||
- os: windows-latest |
|||
python-version: 3.9 |
|||
|
|||
steps: |
|||
- uses: actions/checkout@v2 |
|||
- name: Set up Python ${{ matrix.python-version }} |
|||
uses: actions/setup-python@v2 |
|||
with: |
|||
python-version: ${{ matrix.python-version }} |
|||
- name: Install system dependencies |
|||
if: runner.os == 'Linux' |
|||
run: sudo apt-get install unrar p7zip-full par2 chromium-chromedriver |
|||
- name: Install Python dependencies |
|||
run: | |
|||
python --version |
|||
pip install --upgrade pip |
|||
pip install --upgrade -r requirements.txt |
|||
pip install --upgrade -r tests/requirements.txt |
|||
- name: Test SABnzbd |
|||
run: pytest -s |
|||
|
|||
|
@ -1,47 +0,0 @@ |
|||
matrix: |
|||
include: |
|||
# On Linux we test all supported Python versions |
|||
# On macOS we only test the semi-recent version that is included |
|||
- os: linux |
|||
dist: focal |
|||
language: python |
|||
python: "3.6" |
|||
- os: linux |
|||
dist: focal |
|||
language: python |
|||
python: "3.7" |
|||
- os: linux |
|||
dist: focal |
|||
language: python |
|||
python: "3.8" |
|||
- os: linux |
|||
dist: focal |
|||
language: python |
|||
python: "3.9" |
|||
- os: osx |
|||
addons: |
|||
chrome: stable |
|||
env: |
|||
- HOMEBREW_NO_AUTO_UPDATE=1 |
|||
|
|||
install: |
|||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then |
|||
LATEST_CHROMEDRIVER=$(curl -s https://chromedriver.storage.googleapis.com/LATEST_RELEASE) && |
|||
wget --no-verbose -O /tmp/chromedriver.zip https://chromedriver.storage.googleapis.com/$LATEST_CHROMEDRIVER/chromedriver_mac64.zip && |
|||
sudo unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/; |
|||
else |
|||
sudo apt-get install unrar p7zip-full par2 chromium-chromedriver -y; |
|||
ln -s /usr/lib/chromium-browser/chromedriver ~/bin/chromedriver; |
|||
fi; |
|||
- python3 --version |
|||
- python3 -m pip install --upgrade pip wheel |
|||
- python3 -m pip install --upgrade -r requirements.txt |
|||
- python3 -m pip install --upgrade -r tests/requirements.txt |
|||
|
|||
script: |
|||
- python3 -m pytest -s |
|||
|
|||
notifications: |
|||
email: |
|||
on_success: never |
|||
on_failure: change |
@ -1,17 +0,0 @@ |
|||
image: |
|||
- Visual Studio 2019 |
|||
|
|||
environment: |
|||
# We only test the latest Python version |
|||
matrix: |
|||
- PYTHON: "C:\\Python38-x64" |
|||
|
|||
install: |
|||
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" |
|||
- python --version |
|||
- python -m pip install --upgrade pip wheel |
|||
- python -m pip install --upgrade -r requirements.txt |
|||
- python -m pip install --upgrade -r tests/requirements.txt |
|||
|
|||
build_script: |
|||
- python -m pytest -s |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue