You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.0 KiB
39 lines
1.0 KiB
name: CI Tests
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
test:
|
|
name: Test ${{ matrix.name }} - 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:
|
|
- name: macOS
|
|
os: macos-latest
|
|
python-version: 3.9
|
|
- name: Windows
|
|
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
|
|
|
|
|
|
|