Skip to content

build, ci: upgrade build and ci setups #102

build, ci: upgrade build and ci setups

build, ci: upgrade build and ci setups #102

Workflow file for this run

name: CI Tests
on:
push:
branches:
- main
tags:
- '*'
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install node
uses: actions/setup-node@v4
with:
node-version: '22.x'
registry-url: 'https://registry.npmjs.org'
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install hatch
- name: Build
run: |
hatch build
- name: Upload builds
uses: actions/upload-artifact@v4
with:
name: bqplot-image-gl-dist-${{ github.run_number }}
path: ./dist
visual-regression-tests:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: bqplot-image-gl-dist-${{ github.run_number }}
path: ./dist
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install bqplot-image-gl and jupyterlab
run: |
echo $PWD
ls -al .
ls -al dist/
pip install dist/bqplot_image_gl*.whl "pytest-ipywidgets[all]"
- name: Install playwright
run: |
playwright install chromium
- name: Run visual regression tests
run: |
pytest tests/ui
- name: Upload UI Test artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: bqplot-image-gl-ui-test-output
path: |
test-results
tests:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
coverage: codecov
envs: |
# Code style
- linux: codestyle
coverage: false
- linux: py36-test
runs-on: ubuntu-20.04
# virtualenv (which tox uses) dropped support for making python 3.6 environments in 20.18.0
toxdeps: virtualenv==20.17.1 hatchling
- linux: py38-test
- linux: py311-test
- macos: py37-test
# virtualenv (which tox uses) dropped support for making python 3.7 environments in 20.27.0
toxdeps: virtualenv==20.26.6 hatchling
- macos: py310-test
- macos: py313-test
- windows: py39-test
- windows: py312-test
- linux: py38-notebooks
- macos: py37-notebooks
# virtualenv (which tox uses) dropped support for making python 3.7 environments in 20.27.0
toxdeps: virtualenv==20.26.6 hatchling
- windows: py39-notebooks