Skip to content

Avoid errors when changing data by checking variables (#45) #217

Avoid errors when changing data by checking variables (#45)

Avoid errors when changing data by checking variables (#45) #217

Workflow file for this run

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 ..