-
Notifications
You must be signed in to change notification settings - Fork 19
57 lines (52 loc) · 1.77 KB
/
Copy pathunittest.yml
File metadata and controls
57 lines (52 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Unit testing
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
workflow_call:
jobs:
build:
uses: ./.github/workflows/installation.yml
code-quality:
uses: ./.github/workflows/codequality.yaml
unit-test:
needs: [build, code-quality]
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12", "3.13"]
# run the suite against both the default renderer and the opt-in fast
# one (REACTON_FAST=1), so both stay green
reacton-fast: ["0", "1"]
# ipyvue/ipyvuetify 3 are the Vue 3 port. Pin the 1.x line by default and
# add one python version that runs against the 3.x line, so reacton keeps
# working with both.
ipyvue: ["<3"]
include:
- python-version: "3.12"
reacton-fast: "0"
ipyvue: ">=3"
- python-version: "3.12"
reacton-fast: "1"
ipyvue: ">=3"
name: unit-test${{ matrix.ipyvue == '>=3' && '-vue3' || '' }} (py${{ matrix.python-version }}, REACTON_FAST=${{ matrix.reacton-fast }})
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/download-artifact@v4
with:
name: reacton-build-${{ github.run_number }}
path: ./dist
- name: Install
run: |
pip install `echo dist/*.whl`[dev] "bqplot<0.13" "pandas<3" "ruff==0.8.3" "ipyvue${{ matrix.ipyvue }}" "ipyvuetify${{ matrix.ipyvue }}"
- name: test
env:
REACTON_FAST: ${{ matrix.reacton-fast }}
run: pytest --cov=reacton reacton