Skip to content

Edit requirements

Edit requirements #147

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