Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
122 changes: 122 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
name: perl
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
create:
jobs:
notify:
runs-on: ubuntu-latest
continue-on-error: true
if: ${{ always() }}
steps:
- uses: PDLPorters/devops/github-actions/irc-notifications@master
with:
target-notifications: true
ci:
runs-on: ${{ matrix.os }}
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' }}
needs: notify
env:
PDL_SIMPLE_ENGINE: ${{ matrix.pdl-simple-engine }}
strategy:
fail-fast: false
matrix:
# Possible values of pdl-simple-engine
# - 'gnuplot' : test Gnuplot
# - 'plplot' : test PLplot
# - 'pgplot' : test PGPLOT
# - '' : test all of the above
pdl-simple-engine: ['']
os: [ubuntu-latest]
perl-version: ['5.10', '5.14', '5.20']
include:
# Test each on ubuntu separately.
- perl-version: '5.30'
os: ubuntu-latest
pdl-simple-engine: 'gnuplot'
- perl-version: '5.30'
os: ubuntu-latest
pdl-simple-engine: 'plplot'
- perl-version: '5.30'
os: ubuntu-latest
pdl-simple-engine: 'pgplot'
# Test all engines on ubuntu with coverage.
- perl-version: '5.30'
os: ubuntu-latest
release-test: true
coverage: true
# Windows: gnuplot
# NOTE: this currently hangs in the CI testing environment
#- perl-version: '5.30'
# os: windows-latest
# pdl-simple-engine: 'gnuplot'
# Windows: plplot
# NOTE: this currently fails due to a memory error for the wingcc
# interactive plotting device.
#- perl-version: '5.30'
# os: windows-latest
# pdl-simple-engine: 'plplot'

# Test all engines on macOS.
- perl-version: '5.30'
os: macos-11
steps:
- uses: actions/checkout@v2
- name: 'ci-dist: target-setup-perl'
uses: PDLPorters/devops/github-actions/ci-dist@master
with:
target-setup-perl: true
perl-version: ${{ matrix.perl-version }}
- name: Install Gnuplot
if: ${{ matrix.pdl-simple-engine == 'gnuplot' || matrix.pdl-simple-engine == '' }}
uses: PDLPorters/devops/github-actions/install-dep-gnuplot@master
- name: Install PLplot
if: ${{ matrix.pdl-simple-engine == 'plplot' || matrix.pdl-simple-engine == '' }}
uses: PDLPorters/devops/github-actions/install-dep-plplot@master
- name: Install PDL dependencies
uses: PDLPorters/devops/github-actions/install-dep-pdl-dep@master
- name: Install Perl runtime optional deps (gnuplot)
if: ${{ matrix.pdl-simple-engine == 'gnuplot' || matrix.pdl-simple-engine == '' }}
shell: bash
run: |
$MYPERL -S cpanm -n PDL::Graphics::Gnuplot || cat ~/.cpanm/build.log
- name: Install Perl runtime optional deps (plplot)
if: ${{ matrix.pdl-simple-engine == 'plplot' || matrix.pdl-simple-engine == '' }}
shell: bash
run: |
$MYPERL -S cpanm -n PDL::Graphics::PLplot || cat ~/.cpanm/build.log
- name: Install Perl runtime optional deps (pgplot)
if: ${{ matrix.pdl-simple-engine == 'pgplot' || matrix.pdl-simple-engine == '' }}
shell: bash
run: |
$MYPERL -S cpanm -n PDL::Graphics::PGPLOT || cat ~/.cpanm/build.log
- name: Dump engine module status
shell: bash
run: |
$MYPERL -Ilib -MPDL::Graphics::Simple -MData::Dumper -e '$Data::Dumper::Sortkeys = 1; my $mods = $PDL::Graphics::Simple::mods; eval "${_}::check()" for map { $_->{module} } values %$mods; print Dumper($mods)'
- name: 'ci-dist: target-all'
uses: PDLPorters/devops/github-actions/ci-dist@master
with:
target-setup-perl: false
target-install-dist-perl-deps: true
target-test-release-testing: true
target-test: true
test-enable-release-testing: ${{ matrix.release-test }}
test-enable-coverage: ${{ matrix.coverage }}
test-enable-graphical-display: true
github-token: ${{ secrets.GITHUB_TOKEN }}

build-status:
runs-on: ubuntu-latest
continue-on-error: true
if: ${{ always() }}
needs: [ 'ci' ]
steps:
- uses: PDLPorters/devops/github-actions/irc-notifications@master
with:
target-build-status: true
needs: ${{ toJSON(needs) }}
17 changes: 17 additions & 0 deletions .github/workflows/issue-notify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: issue-notify

on:
issues:
types: [opened]
issue_comment:
types: [created]

jobs:
notify:
runs-on: ubuntu-latest
continue-on-error: true
if: ${{ always() }}
steps:
- uses: PDLPorters/devops/github-actions/irc-notifications@master
with:
target-notifications: true
1 change: 1 addition & 0 deletions lib/PDL/Graphics/Simple/PGPLOT.pm
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ sub check {
return 0;
}

$mod->{ok} = 1;
return 1;
}

Expand Down