From 1f8db92e2b101e0d9c9183abfebeaecdcd80b2c1 Mon Sep 17 00:00:00 2001 From: Abdulkaiz Khatri <24286590+ful1e5@users.noreply.github.com> Date: Sun, 9 Jun 2024 15:56:53 +0530 Subject: [PATCH] CI Init --- .github/FUNDING.yml | 1 + .github/workflows/build.yml | 61 +++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 .github/FUNDING.yml create mode 100644 .github/workflows/build.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..92dd9cb --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +github: ful1e5 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..f024578 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,61 @@ +name: build + +on: + push: + paths-ignore: + - "**.md" + - LICENSE + - .github/FUNDING.yml + branches: [main, dev] + pull_request: + paths-ignore: + - "**.md" + - LICENSE + - .github/FUNDING.yml + branches: [main] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] + + steps: + - uses: actions/checkout@v4 + + - name: Setup node + uses: actions/setup-node@v4 + with: + node-version: 16 + + - name: Installing Node Dependencies + run: | + rm -rf node_modules yarn.lock + yarn install --frozen-lockfile + continue-on-error: false + + - name: Print cbmp version + run: npx cbmp --version + + - name: Rendering Bitmaps + run: yarn render + continue-on-error: false + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: 3.11 + + - name: Installing PyPi Dependencies + run: python -m pip install --upgrade pip clickgen + continue-on-error: false + + - name: Print clickgen Version + run: | + clickgen --version + ctgen --version + + - name: Build + run: yarn build