Skip to content

Commit

Permalink
Edit workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
Keerthana-Bidarakoppa committed Aug 20, 2024
1 parent 616d34a commit 7bacacd
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/TCGstorageAPI-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: TCGstorageAPI build

on:
push:
branches:
- master
pull_request:
branches:
- master
Expand All @@ -12,7 +10,7 @@ jobs:
build:
name: TCGstorageAPI_build
# This job runs on Linux
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -30,14 +28,12 @@ jobs:
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/
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

0 comments on commit 7bacacd

Please sign in to comment.