Do not use werkzeug>=3.0.0 #221
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 xiplot | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
paths: ["**.py", "pyproject.toml", "requirements*.txt"] | |
pull_request: | |
branches: [main] | |
paths: ["**.py", "pyproject.toml", "requirements*.txt"] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up chome | |
run: | | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add | |
echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list | |
sudo apt-get update | |
sudo apt-get install libnss3-dev google-chrome-stable | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install -r requirements.txt -r requirements-dev.txt | |
- name: Test with pytest | |
run: | | |
pytest | |
- name: Build package | |
run: | | |
rm -rf dist | |
python -m build . | |
- name: Install package | |
run: | | |
cd dist | |
python -m pip install *-*.whl | |
python -c "import xiplot.app" | |
xiplot --help | |
cd .. |