Skip to content

Adding Guidelines #2797

Adding Guidelines

Adding Guidelines #2797

Workflow file for this run

name: Run tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
node-version: [19.x]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install . --no-deps
python -m pip install -r requirements.txt
python -m pip install -r requirements-dev.txt
# # don't need to install Node dependencies because they are installed by the build hook
# - name: Install Node dependencies
# run: |
# npm install
- name: Run pre-commit
uses: pre-commit/action@v3.0.1
with:
extra_args: --all-files --verbose --show-diff-on-failure
- name: Run Python tests with pytest
run: |
pytest -vv
- name: Run mypy
run: |
mypy src/fontra/ test-py/
- name: Run Node tests
run: |
npm test