Anki/anki-qt/.github/workflows/checks.yml
Damien Elmes b23b6fbe35 move the separate components back into this monorepo
Earlier today I pushed a change that split this code up into multiple
repos, but that has proved to complicate things too much. So we're
back to a single repo, except the individual submodules are better
separated than they were before.

The README files need updating again; I will push them out soon.

Aside from splitting out the different modules, the sound code has
moved from from anki to aqt.
2020-01-02 19:43:19 +10:00

40 lines
1.2 KiB
YAML

name: Checks
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up python
uses: actions/setup-python@v1
with:
python-version: '3.6'
- name: Set up protoc
uses: Arduino/actions/setup-protoc@master
- name: Set up node
uses: actions/setup-node@v1
with:
node-version: 12
- name: Run checks
run: |
# add requirements
sudo apt install portaudio19-dev
python3.6 -m venv ~/pyenv
. ~/pyenv/bin/activate
pip install --upgrade pip setuptools
pip install -r requirements.qt
cd ..
for p in proto lib-rust lib-rspy lib-python; do git clone --depth 1 https://github.com/ankitects/anki-$p.git; done
(cd anki-lib-rspy && make develop build BUILDFLAGS="")
(cd anki-lib-python && make develop build)
# check module
cd anki-qt
make check build
# make sure wheel works
deactivate
cd ..
pip install -r anki-qt/requirements.qt
pip install build/*.whl
python -c 'import aqt'