-
Notifications
You must be signed in to change notification settings - Fork 16
39 lines (37 loc) · 1.25 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
name: TCGstorageAPI build
on:
push:
pull_request:
branches:
- master
jobs:
build:
name: TCGstorageAPI_build
# This job runs on Linux
runs-on: ubuntu-22.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: 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.10/TCGstorageAPI /home/runner/work/TCGstorageAPI/TCGstorageAPI
export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python3.10/dist-packages/
python3 TCGstorageAPI/tcgapi_test.py