-
Notifications
You must be signed in to change notification settings - Fork 16
43 lines (41 loc) · 1.36 KB
/
TCGstorageAPI-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
name: TCGstorageAPI build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: TCGstorageAPI_build
# This job runs on Linux
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkout git submodules
run: git submodule update --init --recursive
- name: Install dependencies
run: |
sudo apt-get update
sudo apt install python3
sudo apt install python3-pip
sudo apt-get install -y --no-install-recommends python3-all python3-all-dev
sudo apt-get install libgnutls28-dev
sudo apt-get install libboost-all-dev
- name: Install python requirement packages
run: |
sudo apt-get install python3-setuptools
pip3 install --no-cache-dir -r requirements.txt
- name: Link gmake to make
run: sudo ln -s /usr/bin/make /usr/bin/gmake
- name: Build opensea
run: python3 setup.py opensea
- name: Build TCGstorageAPI package
run: python3 setup.py build
- name: Run unit tests
run: |
sudo cp -R build/lib.linux-x86_64-3.6/TCGstorageAPI /home/runner/work/TCGstorageAPI/TCGstorageAPI
export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python3.6/site-packages/
python3 TCGstorageAPI/tcgapi_test.py