Migrate CI to Github Actions
This commit is contained in:
parent
ac82c6b3c7
commit
f6a0d34dd7
|
|
@ -0,0 +1,46 @@
|
||||||
|
name: CI
|
||||||
|
|
||||||
|
on: [pull_request, push]
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: ${{ github.head_ref != '' }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
ci:
|
||||||
|
name: Check
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12-dev']
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
|
- name: Install tools
|
||||||
|
run: pip install pycodestyle pyflakes
|
||||||
|
|
||||||
|
- name: Lint code
|
||||||
|
run: pyflakes nova3/engines/*.py
|
||||||
|
|
||||||
|
- name: Format code
|
||||||
|
run: |
|
||||||
|
# skipping E265, fixing it will break plugin usage on older qbt instances (< v4.1.2)
|
||||||
|
pycodestyle \
|
||||||
|
--ignore=E265,W503 \
|
||||||
|
--max-line-length=100 \
|
||||||
|
--statistics \
|
||||||
|
nova3/engines/*.py
|
||||||
|
|
||||||
|
- name: Build code
|
||||||
|
run: |
|
||||||
|
python -m compileall nova3/engines/*.py
|
||||||
26
.travis.yml
26
.travis.yml
|
|
@ -1,26 +0,0 @@
|
||||||
language: python
|
|
||||||
|
|
||||||
dist: bionic
|
|
||||||
sudo: false
|
|
||||||
|
|
||||||
cache: pip
|
|
||||||
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- python: 3.5
|
|
||||||
- python: 3.6
|
|
||||||
- python: 3.7
|
|
||||||
- python: 3.8
|
|
||||||
- python: 3.9
|
|
||||||
- python: 3.10
|
|
||||||
- python: nightly
|
|
||||||
|
|
||||||
install:
|
|
||||||
- pip install pycodestyle pyflakes
|
|
||||||
|
|
||||||
script:
|
|
||||||
- cd "$TRAVIS_BUILD_DIR/nova3/engines"
|
|
||||||
- python -m compileall *.py
|
|
||||||
- pyflakes *.py
|
|
||||||
# skipping E265, fixing it will break plugin usage on older qbt instances (< v4.1.2)
|
|
||||||
- pycodestyle --ignore=E265,W503 --max-line-length=100 --statistics *.py
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
Search Plugins
|
Search Plugins
|
||||||
===
|
===
|
||||||
|
[](https://github.com/qbittorrent/search-plugins/actions)
|
||||||
[](https://travis-ci.org/qbittorrent/search-plugins)
|
|
||||||
|
|
||||||
This repository contains search plugins for the search feature in [qBittorrent](https://github.com/qbittorrent/qBittorrent).
|
This repository contains search plugins for the search feature in [qBittorrent](https://github.com/qbittorrent/qBittorrent).
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue