Skip to content

refactor: Update Python unit test command in PR check workflow #9

refactor: Update Python unit test command in PR check workflow

refactor: Update Python unit test command in PR check workflow #9

name: Python Pull Request Check
on:
push:
branches: [ main ]
paths:
- "packages/python/**"
pull_request:
branches: [ main ]
paths:
- "packages/python/**"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
release:
types: [published]
jobs:
checking-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
working-directory: ./packages/python
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
working-directory: ./packages/python
run: |
python -m unittest .\tests\test_multiform_validator.py