build, ci: upgrade build and ci setups #90
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: 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 | |
- linux: py38-test | |
- linux: py311-test | |
- macos: py37-test | |
- macos: py310-test | |
- macos: py313-test | |
- windows: py39-test | |
- windows: py312-test | |
- linux: py38-notebooks | |
- macos: py37-notebooks | |
- windows: py39-notebooks |