Skip to content

Commit 36857fc

Browse files
authored
Merge pull request #75 from tkf/github-actions
Setup GitHub Actions
2 parents e033acc + 599bd47 commit 36857fc

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed

.github/workflows/ci.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags: '*'
8+
pull_request:
9+
workflow_dispatch:
10+
11+
jobs:
12+
test:
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
matrix:
16+
os:
17+
- ubuntu-latest
18+
- macos-latest
19+
- windows-latest
20+
architecture: [x64]
21+
python-version: ['3']
22+
julia-version: ['1.0', '1.5', 'nightly']
23+
include:
24+
- os: windows-latest
25+
architecture: x86
26+
python-version: '3'
27+
julia-version: '1'
28+
fail-fast: false
29+
name: Test
30+
Julia ${{ matrix.julia-version }}
31+
Python ${{ matrix.python-version }}
32+
${{ matrix.os }} ${{ matrix.architecture }}
33+
steps:
34+
- uses: actions/checkout@v2
35+
36+
- name: Setup python
37+
uses: actions/setup-python@v1
38+
with:
39+
python-version: ${{ matrix.python-version }}
40+
architecture: ${{ matrix.architecture }}
41+
- run: python -m pip install --upgrade pip
42+
- run: python -m pip install pandas tables
43+
44+
- name: Setup julia
45+
uses: julia-actions/setup-julia@v1
46+
with:
47+
version: ${{ matrix.julia-version }}
48+
arch: ${{ matrix.architecture }}
49+
show-versioninfo: true
50+
- uses: julia-actions/julia-buildpkg@v1
51+
env:
52+
PYTHON: python
53+
54+
- uses: actions/cache@v1
55+
env:
56+
cache-name: cache-artifacts
57+
with:
58+
path: ~/.julia/artifacts
59+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
60+
restore-keys: |
61+
${{ runner.os }}-test-${{ env.cache-name }}-
62+
${{ runner.os }}-test-
63+
${{ runner.os }}-
64+
65+
- uses: julia-actions/julia-runtest@v1
66+
- uses: julia-actions/julia-processcoverage@v1
67+
- uses: codecov/codecov-action@v1
68+
with:
69+
file: ./lcov.info
70+
flags: unittests
71+
name: codecov-umbrella

0 commit comments

Comments
 (0)