-
Notifications
You must be signed in to change notification settings - Fork 41
64 lines (64 loc) · 2.08 KB
/
development.yaml
File metadata and controls
64 lines (64 loc) · 2.08 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Development
on:
push:
branches:
- '**' # every branch
- '!stage*' # exclude branches beginning with stage
pull_request:
branches:
- '**' # every branch
- '!stage*' # exclude branches beginning with stage
jobs:
test:
if: github.event_name == 'push' || github.event_name == 'pull_request'
runs-on: ubuntu-latest
strategy:
matrix:
matlab_version: ["R2019a"]
mysql_version: ["8.0.18", "5.7", "5.6"]
# include:
# - matlab_version: "R2018b"
# mysql_version: "5.7"
# - matlab_version: "R2016b"
# mysql_version: "5.7"
steps:
- uses: actions/checkout@v2
- name: Run primary tests
env:
MATLAB_UID: "1001"
MATLAB_GID: "116"
MATLAB_USER: ${{ secrets.matlab_user }}
MATLAB_HOSTID: ${{ secrets.matlab_hostid }}
MATLAB_VERSION: ${{ matrix.matlab_version }}
MYSQL_TAG: ${{ matrix.mysql_version }}
MINIO_VER: RELEASE.2022-01-03T18-22-58Z
MATLAB_LICENSE: ${{ secrets[format('matlab_license_{0}', matrix.matlab_version)] }}
DOCKER_CLIENT_TIMEOUT: "120"
COMPOSE_HTTP_TIMEOUT: "120"
run: |
docker-compose -f LNX-docker-compose.yaml up --build --exit-code-from app
- name: Add toolbox artifact
uses: actions/upload-artifact@v3
with:
name: dj-toolbox-${{matrix.matlab_version}}
path: DataJoint.mltbx
retention-days: 1
publish-docs:
if: |
github.event_name == 'push' &&
startsWith(github.ref, 'refs/tags')
needs: test
runs-on: ubuntu-latest
env:
DOCKER_CLIENT_TIMEOUT: "120"
COMPOSE_HTTP_TIMEOUT: "120"
steps:
- uses: actions/checkout@v2
- name: Deploy docs
run: |
export MODE=BUILD
export PACKAGE=datajoint
export UPSTREAM_REPO=https://github.com/${GITHUB_REPOSITORY}.git
export HOST_UID=$(id -u)
docker compose -f docs/docker-compose.yaml up --exit-code-from docs --build
git push origin gh-pages