Skip to content

[avar-2] Remove axis conflict magic, refactor #2784

[avar-2] Remove axis conflict magic, refactor

[avar-2] Remove axis conflict magic, refactor #2784

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/[email protected]
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