Skip to content

Switching to new ankiweb API #16

Switching to new ankiweb API

Switching to new ankiweb API #16

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python application
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
sudo apt-get update && sudo apt-get install -y libzbar0 protobuf-compiler
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements/requirements-dev.txt
- name: Generate python's protobuf files
run: |
protoc --python_out=. ./anker/anki_proto/*.proto
- name: Test with pytest
run: |
pytest