build #386
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |