Skip to content

Commit

Permalink
Merge pull request #169 from mossr/master
Browse files Browse the repository at this point in the history
Switch to GitHub actions for CI (testing)
  • Loading branch information
mossr authored Apr 8, 2021
2 parents 11df70a + 518de9c commit c750b08
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 18 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: CI

# Run on master, tags, or any pull request
on:
push:
branches: [master]
tags: ["*"]
pull_request:

jobs:

# unit tests with coverage
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- "1.0" # LTS
- "1" # Latest Release
os:
- ubuntu-latest
arch:
- x64
steps:

# check out the project and install Julia
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}

# using a cache can speed up execution times
- uses: actions/cache@v2
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-${{ matrix.arch }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-${{ matrix.arch }}-test-${{ env.cache-name }}-
${{ runner.os }}-${{ matrix.arch }}-test-
${{ runner.os }}-${{ matrix.arch }}-
${{ runner.os }}-
# TexLive installation
- name: Install TexLive
run: sudo apt-get install pdf2svg texlive-latex-base texlive-binaries texlive-pictures texlive-latex-extra texlive-luatex

# build the depencies, run the tests, and upload coverage results
- uses: julia-actions/julia-buildpkg@latest
- run: |
git config --global user.name Tester
git config --global user.email [email protected]
- name: Run Tests
uses: julia-actions/julia-runtest@latest
- uses: julia-actions/julia-processcoverage@v1
- name: Upload Coverage
uses: julia-actions/julia-uploadcoveralls@v1
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
continue-on-error: true
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# PGFPlots


[![Build Status](https://travis-ci.org/JuliaTeX/PGFPlots.jl.svg)](https://travis-ci.org/JuliaTeX/PGFPlots.jl)
[![Build Status](https://github.com/JuliaTeX/PGFPlots.jl/workflows/CI/badge.svg)](https://github.com/JuliaTeX/PGFPlots.jl/actions)
[![Coverage Status](https://coveralls.io/repos/github/JuliaTeX/PGFPlots.jl/badge.svg?branch=master)](https://coveralls.io/github/JuliaTeX/PGFPlots.jl?branch=master)

This library uses the LaTeX package [pgfplots](http://ctan.org/pkg/pgfplots) to produce plots. It integrates with IJulia, outputting SVG images to the notebook.
Expand Down

0 comments on commit c750b08

Please sign in to comment.