mirror of
https://github.com/xgi/castero
synced 2024-11-10 15:28:45 +01:00
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
name: CI
|
|
on: [push, pull_request]
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.7", "3.8", "3.9", "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 pre dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install vlc mpv libmpv-dev
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements.txt
|
|
- name: Test
|
|
run: |
|
|
coverage run -m pytest
|
|
coverage xml
|
|
- name: Setup Code Climate test-reporter
|
|
run: |
|
|
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
|
chmod +x ./cc-test-reporter
|
|
- name: Upload coverage report
|
|
env:
|
|
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
|
run: |
|
|
./cc-test-reporter after-build -t coverage.py
|