MilesCranmer commited on
Commit
a100ffb
1 Parent(s): 3663ed6

Create GitHub action for testing

Browse files
Files changed (1) hide show
  1. .github/workflows/CI.yml +35 -0
.github/workflows/CI.yml ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ on:
2
+ push:
3
+ branches:
4
+ - master
5
+ pull_request:
6
+ branches:
7
+ - master
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ${{ matrix.os }}
12
+ strategy:
13
+ matrix:
14
+ julia-version: ['1.5.0']
15
+ python-version: ['3.6']
16
+ os: [ubuntu-latest, windows-latest]
17
+
18
+ steps:
19
+ - uses: actions/checkout@v1.0.0
20
+ - name: "Set up Julia"
21
+ uses: julia-actions/setup-julia@v1.6.0
22
+ with:
23
+ version: ${{ matrix.julia-version }}
24
+ - name: "Set up Python"
25
+ uses: actions/setup-python@v1
26
+ with:
27
+ python-version: ${{ matrix.python-version }}
28
+ - name: "Install PySR"
29
+ run: |
30
+ python -m pip install --upgrade pip
31
+ python setup.py install
32
+ shell: bash
33
+ - name: "Run tests"
34
+ run: python test/test.py
35
+ shell: bash