tests #195
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: tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- '*' | |
workflow_dispatch: | |
schedule: | |
- cron: '0 01 * * SUN' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
env: | |
COLUMNS: 120 | |
jobs: | |
test_suite: | |
name: Tests on ${{ matrix.os }} with Python ${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] | |
python-version: ["3.9", "3.10", "3.11"] | |
timeout-minutes: 90 | |
defaults: | |
run: | |
shell: bash -l {0} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: holoviz-dev/holoviz_tasks/[email protected] | |
with: | |
name: unit_test_suite | |
python-version: ${{ matrix.python-version }} | |
channel-priority: strict | |
channels: pyviz/label/dev,conda-forge,nodefaults | |
envs: "-o tests" | |
cache: true | |
conda-update: true | |
id: install | |
- name: doit test_lint | |
if: runner.os != 'Windows' | |
run: | | |
conda activate test-environment | |
doit test_lint | |
- name: doit test_unit_deploy | |
run: | | |
conda activate test-environment | |
doit test_unit_deploy |