require julia 1.2 and update ci
This commit is contained in:
parent
f98ef14f15
commit
2dce036477
50
.github/workflows/ci.yml
vendored
50
.github/workflows/ci.yml
vendored
@ -11,27 +11,53 @@ defaults:
|
|||||||
jobs:
|
jobs:
|
||||||
CI:
|
CI:
|
||||||
if: "!contains(github.event.head_commit.message, '[skip ci]')"
|
if: "!contains(github.event.head_commit.message, '[skip ci]')"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GKS_ENCODING: "utf8"
|
GKS_ENCODING: "utf8"
|
||||||
|
|
||||||
|
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch}}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
continue-on-error: ${{ matrix.allow-failure }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
julia_version:
|
julia_version:
|
||||||
- 'nightly'
|
- 'nightly'
|
||||||
- '1'
|
- '1'
|
||||||
- '1.0'
|
- '1.2'
|
||||||
os:
|
os:
|
||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
- windows-latest
|
- windows-latest
|
||||||
- macos-latest
|
- macos-latest
|
||||||
arch:
|
arch:
|
||||||
- x64
|
- x64
|
||||||
# - x32
|
- x86
|
||||||
|
allow-failure: [false]
|
||||||
|
include:
|
||||||
|
- version: 'nightly'
|
||||||
|
os: ubuntu-latest
|
||||||
|
arch: x64
|
||||||
|
allow-failure: true
|
||||||
|
- version: 'nightly'
|
||||||
|
os: ubuntu-latest
|
||||||
|
arch: x86
|
||||||
|
allow-failure: true
|
||||||
|
- version: 'nightly'
|
||||||
|
os: macOS-latest
|
||||||
|
arch: x64
|
||||||
|
allow-failure: true
|
||||||
|
- version: 'nightly'
|
||||||
|
os: windows-latest
|
||||||
|
arch: x64
|
||||||
|
allow-failure: true
|
||||||
|
- version: 'nightly'
|
||||||
|
os: windows-latest
|
||||||
|
arch: x86
|
||||||
|
allow-failure: true
|
||||||
|
exclude:
|
||||||
|
- os: macOS-latest
|
||||||
|
arch: x86
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# Setup environment
|
# Setup environment
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: julia-actions/setup-julia@latest
|
- uses: julia-actions/setup-julia@latest
|
||||||
@ -42,22 +68,22 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
cache-name: cache-artifacts
|
cache-name: cache-artifacts
|
||||||
with:
|
with:
|
||||||
path: ~/.julia/artifacts
|
path: ~/.julia/artifacts
|
||||||
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
|
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-test-${{ env.cache-name }}-
|
${{ runner.os }}-test-${{ env.cache-name }}-
|
||||||
${{ runner.os }}-test-
|
${{ runner.os }}-test-
|
||||||
${{ runner.os }}-
|
${{ runner.os }}-
|
||||||
|
|
||||||
# OS Dependencies
|
# OS Dependencies
|
||||||
# - name: Ubuntu OS dependencies
|
# - name: Ubuntu OS dependencies
|
||||||
# if: startsWith(matrix.os,'ubuntu')
|
# if: startsWith(matrix.os,'ubuntu')
|
||||||
# run: |
|
# run: |
|
||||||
# ./test/install_wkhtmltoimage.sh
|
# ./test/install_wkhtmltoimage.sh
|
||||||
|
|
||||||
# at-spi2-core, libgtk-3-dev, libgtk-3-0, and xvfb are already installed: https://github.com/actions/virtual-environments/blob/master/images/linux/scripts/installers/basic.sh
|
|
||||||
|
|
||||||
|
# at-spi2-core, libgtk-3-dev, libgtk-3-0, and xvfb are already installed: https://github.com/actions/virtual-environments/blob/master/images/linux/scripts/installers/basic.sh
|
||||||
|
|
||||||
|
|
||||||
# TESTCMD
|
# TESTCMD
|
||||||
- name: Default TESTCMD
|
- name: Default TESTCMD
|
||||||
run: echo ::set-env name=TESTCMD::"julia"
|
run: echo ::set-env name=TESTCMD::"julia"
|
||||||
@ -68,11 +94,11 @@ jobs:
|
|||||||
# Julia Deoendencies
|
# Julia Deoendencies
|
||||||
- name: Install Julia dependencies
|
- name: Install Julia dependencies
|
||||||
uses: julia-actions/julia-buildpkg@latest
|
uses: julia-actions/julia-buildpkg@latest
|
||||||
|
|
||||||
# Run tests
|
# Run tests
|
||||||
- name: Run Graphical test
|
- name: Run Graphical test
|
||||||
run: $TESTCMD --project -e 'using Pkg; Pkg.test(coverage=true);'
|
run: $TESTCMD --project -e 'using Pkg; Pkg.test(coverage=true);'
|
||||||
|
|
||||||
- name: Codecov
|
- name: Codecov
|
||||||
uses: julia-actions/julia-uploadcodecov@latest
|
uses: julia-actions/julia-uploadcodecov@latest
|
||||||
env:
|
env:
|
||||||
|
|||||||
@ -51,7 +51,7 @@ Requires = "1"
|
|||||||
Showoff = "0.3.1"
|
Showoff = "0.3.1"
|
||||||
StableRNGs = "0.1.1"
|
StableRNGs = "0.1.1"
|
||||||
StatsBase = "0.32, 0.33"
|
StatsBase = "0.32, 0.33"
|
||||||
julia = "1"
|
julia = "1.2"
|
||||||
|
|
||||||
[extras]
|
[extras]
|
||||||
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
|
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user