Workflow file for this run
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: 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.5.0 | ||
Check failure on line 15 in .github/workflows/python-test.yml GitHub Actions / .github/workflows/python-test.ymlInvalid workflow file
|
||
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 }} |