Skip to content

Commit

Permalink
Run pytest after package installation
Browse files Browse the repository at this point in the history
  • Loading branch information
ndrezn committed Nov 21, 2024
1 parent 04b307c commit 59b4b4b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,10 @@ jobs:
curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv
shell: bash
- name: Run all tests
run: |
source .venv/bin/activate
uv pip install ".[dev]"
pytest --headless
- name: Generate distribution
run: |
source .venv/bin/activate
uv pip install -r requires-dev.txt -r requires-install.txt
uv pip install ".[dev]"
npm i
npm run dist
npm pack && mv *.tgz dist/
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"private::lint.eslint": "eslint src",
"private::lint.prettier": "prettier src --list-different --ignore-path=.prettierignore",
"lint": "run-s private::lint.*",
"dist": "npm run build && run-s pre-flight-dag-version && rimraf build dist && python setup.py sdist bdist_wheel"
"dist": "npm run build && pytest --headless && run-s pre-flight-dag-version && rimraf build dist && python setup.py sdist bdist_wheel"
},
"author": "Plotly <[email protected]>",
"license": "MIT",
Expand Down

0 comments on commit 59b4b4b

Please sign in to comment.