Skip to content

Check push by @zjosua #8

Check push by @zjosua

Check push by @zjosua #8

Workflow file for this run

name: check-code
run-name: Check ${{ github.event_name }} by @${{ github.actor }}
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: psf/black@stable
with:
options: "--check"
src: "./src/multiple_choice"
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install anki aqt PyQt5 PyQt6 PyQt6-WebEngine
sudo apt-get install libegl1
- name: Test with pytest
run: |
pip install pytest pytest-cov
pytest --cov=src/multiple_choice/ | tee -a $GITHUB_STEP_SUMMARY