mirror of
https://github.com/sabnzbd/sabnzbd.git
synced 2026-04-30 03:33:28 -04:00
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
name: CI Tests
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
test:
|
|
name: Test ${{ matrix.name }} - Python ${{ matrix.python-version }}
|
|
runs-on: ${{ matrix.os }}
|
|
timeout-minutes: 15
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python-version: ["3.7", "3.8", "3.9", "3.10"]
|
|
os: [ubuntu-20.04]
|
|
include:
|
|
- name: macOS
|
|
os: macos-latest
|
|
python-version: "3.10"
|
|
- name: Windows
|
|
os: windows-latest
|
|
python-version: "3.10"
|
|
|
|
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
|
|
- name: Install Python dependencies
|
|
run: |
|
|
python --version
|
|
pip install --upgrade pip wheel
|
|
pip install --upgrade -r requirements.txt
|
|
pip install --upgrade -r tests/requirements.txt
|
|
- name: Test SABnzbd
|
|
run: pytest -s
|
|
|
|
|