Skip to content

v0.6.0

v0.6.0 #37

Workflow file for this run

name: Test Python Package
on:
pull_request:
branches:
- main
- dev/v\d+\.\d+\.\d+
types: [opened, reopened, synchronize]
permissions:
contents: read
jobs:
build:
uses: xpodev/py-jsx/.github/workflows/build-frontend-assets.yml@dev/v0.6.0
test:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r test-requirements.txt
- name: Downloading the latest version of the frontend assets
uses: actions/download-artifact@v4
with:
name: frontend-assets
path: src/jsx/server/static
- name: Run tests
working-directory: ${{ github.workspace }}
run: |
python -m unittest discover -s tests -p 'test_*.py' -t ${{ github.workspace }}