Vis: setup and comm_matrix #780
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: unit tests | |
on: | |
push: | |
branches: [develop] | |
pull_request: | |
branches: [develop] | |
jobs: | |
ubuntu: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
include: | |
- python-version: "3.7" | |
os: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Python packages | |
run: | | |
pip install --upgrade pip | |
pip install --upgrade numpy pandas pytest otf2 bokeh datashader | |
- name: Lint and format check with flake8 and black | |
if: ${{ matrix.python-version == 3.9 }} | |
run: | | |
pip install --upgrade black flake8 | |
black --diff --check . | |
flake8 | |
- name: Basic test with pytest | |
run: | | |
PYTHONPATH=. $(which pytest) | |
macos: | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Python packages | |
run: | | |
pip install --upgrade pip | |
pip install --upgrade numpy pandas pytest otf2 bokeh datashader | |
- name: Basic test with pytest | |
run: | | |
PYTHONPATH=. $(which pytest) | |