Skip to content

Scheduler: add output_graph_image method #87

Scheduler: add output_graph_image method

Scheduler: add output_graph_image method #87

name: CI Integration
on:
push:
branches-ignore:
- 'dependabot/**'
paths-ignore:
- 'docs/**'
- 'docs_requirements.txt'
tags-ignore:
- 'v**'
pull_request:
paths-ignore:
- 'docs/**'
- 'docs_requirements.txt'
jobs:
psyneulink:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9, '3.10', 3.11]
os: [ubuntu-latest, macos-latest, windows-latest]
exclude:
# 3.7 is dropped on macos 14 runners
- python-version: '3.7'
os: macos-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
with:
# need history and tags for versioneer
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.python-architecture }}
- name: Get pip cache location
shell: bash
id: pip_cache
run: |
python -m pip install -U pip
python -m pip --version
echo ::set-output name=pip_cache_dir::$(python -m pip cache dir)
- name: Wheels cache
uses: actions/[email protected]
with:
path: ${{ steps.pip_cache.outputs.pip_cache_dir }}/wheels
key: ${{ runner.os }}-python-${{ matrix.python-version }}-${{ matrix.python-architecture }}-pip-wheels-v2-${{ github.sha }}
restore-keys: ${{ runner.os }}-python-${{ matrix.python-version }}-${{ matrix.python-architecture }}-pip-wheels-v2
- name: Install package
run: python -m pip install -r psyneulink_requirements.txt && python -m pip install -e .[dev]
- name: Test with pytest
timeout-minutes: 80
run: pytest --junit-xml=tests_out.xml --verbosity=0 -n auto --no-cov tests/integration/psyneulink/
- name: Upload test results
uses: actions/upload-artifact@v3
with:
name: test-results-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.python-architecture }}
path: tests_out.xml
retention-days: 5
if: success() || failure()