-
Notifications
You must be signed in to change notification settings - Fork 3
57 lines (50 loc) · 1.28 KB
/
build.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
47
48
49
50
51
52
53
54
55
56
57
name: build
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
#: Run the test every week
schedule:
- cron: "0 12 * * 1"
jobs:
python-library:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.7']
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: Install Python 3
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_dev.txt
- name: Run python tests
run: pytest
ui:
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ./gamcoach-ui
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [16]
steps:
- uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install npm dependencies
working-directory: ./gamcoach-ui
run: npm install
- name: Build UI
working-directory: ./gamcoach-ui
run: npm run build