mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
switch to GitHub workflows for CI
Also drop -j from Make, as it saves little time and makes errors harder to read.
This commit is contained in:
parent
ecfb2af4ee
commit
e2feb89f47
2 changed files with 30 additions and 20 deletions
30
.github/workflows/pythonpackage.yml
vendored
Normal file
30
.github/workflows/pythonpackage.yml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
name: Checks
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
max-parallel: 4
|
||||||
|
matrix:
|
||||||
|
python-version: [3.6, 3.7]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
- name: Set up Node
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: 12
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
sudo apt install portaudio19-dev
|
||||||
|
pip install -r requirements.qt
|
||||||
|
- name: Run checks
|
||||||
|
run: |
|
||||||
|
make check pytype
|
||||||
|
|
20
.travis.yml
20
.travis.yml
|
@ -1,20 +0,0 @@
|
||||||
dist: xenial
|
|
||||||
language: python
|
|
||||||
os: linux
|
|
||||||
install:
|
|
||||||
- sudo apt-get update
|
|
||||||
- sudo apt-get install portaudio19-dev npm
|
|
||||||
- pip install -r requirements.qt
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
include:
|
|
||||||
- python: 3.6
|
|
||||||
script: make -j 4 check pytype
|
|
||||||
- python: 3.7
|
|
||||||
script: make -j 4 check pytype
|
|
||||||
|
|
||||||
notifications:
|
|
||||||
email:
|
|
||||||
if: branch = "master"
|
|
||||||
recipients:
|
|
||||||
- secure: "h6YYuhqlPDGVWCER46e3uVexhwUMAyvXz34XHRRm/2eH1CGxVX5zewlI/BzMYiukUt9nRvXD3v5V2YQj9Y3eLdP7Gx1Yo6K51biipP9OE2vrLusXwVbJFJCOdUuzMvs4bZEY+vmi5q25vkOiEYokkvRw/CM+zWvWczN9GLi7tiD9qvP5weg3aWfT4yTLGZG0aZpK9uM93LlBkJI9us6QcR5ukhpR8k69RKn46DhueeuXQ53yhcFwUVxUxwFWWmMWqs1Hh4uv2yXhBNqyZ0OoQfSalktS4SZvKMFBIVk/D7aM9AN/KV0ieY0xrOGWspXbp7MEgEcGomMow4zSUDgfLloVLIHERkte0waQC5MJkD5BFYkMzcNWw3UbYvQagizEBXz3086Eh8ZpfgRTkKb4K6BkcsdfV8EwqP+UxngbBq9dp9hfkcUCgqbq/5bJFWY3ilgWLh2Rx/HsvNFO3yCNiernEqamAWWDSt/+G13N+noP/45ukD/zjgq7Fo4bISoJ/F2KLmOLT4Xa4AtF0C3Y+6hS5yiVvXYKBPQ7pvi1BXCPFFGjG0X7rfy9j+gYWlvzwXqPUC+XF4aAIhwnnxzSNjuiaM0NkSKwHDFqc7FlwYXYEFw/NHeWbKF0Dk7n8lbrUOq14E7q+9K8mKtgrGJbaFTGVNtEQZpN/rhJO/9tslM="
|
|
Loading…
Reference in a new issue