-
Notifications
You must be signed in to change notification settings - Fork 78
46 lines (43 loc) · 1.08 KB
/
build-and-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Build and test sktime-dl
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
TEST_DIR: tmp/
REQUIREMENTS: build_tools/requirements.txt
TEST_SLOW: false
jobs:
build-linux:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
python-version: 3.7
tf-version: 2.3
- os: ubuntu-latest
python-version: 3.6
tf-version: 1.9
env:
PYTHON_VERSION: ${{ matrix.python-version }}
TF_VERSION: ${{ matrix.tf-version }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Run build script
run: ./build_tools/build.sh
shell: bash
- name: Run test script
run: ./build_tools/test.sh
shell: bash