Skip to content

build

build #375

Workflow file for this run

name: build
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: 33 21 */10 * *
jobs:
p2r-test:
name: Unit tests for paper2remarkable
runs-on: [ 'ubuntu-latest' ]
strategy:
matrix:
py: [ '3.9', '3.11' ] # minimum required and latest stable
steps:
- name: Install Python ${{ matrix.py }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.py }}
- name: Checkout code
uses: actions/checkout@v2
# NOTE: Keep versions in sync with .pre-commit-config.yaml
- name: Run code quality tests (black)
uses: psf/black@stable
with:
version: "24.8.0"
- name: Run code quality tests (isort)
uses: jamescurtin/isort-action@master
with:
isortVersion: "5.12.0"
- name: Run unit test script
run: ./.github/scripts/test_p2r.sh
shell: bash