Skip to content

Commit

Permalink
chore: Refactor CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
johngrantuk committed Aug 8, 2024
1 parent ab44f9a commit f886d06
Show file tree
Hide file tree
Showing 8 changed files with 65 additions and 175 deletions.
10 changes: 0 additions & 10 deletions .github/actions/setup/action.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/actions/setup/python-setup.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/actions/setup/typescript-setup.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/checks-python.yml

This file was deleted.

62 changes: 0 additions & 62 deletions .github/workflows/checks-typescript.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/pr.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/python-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Python Check

on:
pull_request:
types: [opened, synchronize, reopened]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11.9'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black pylint pytest
- name: Lint with black
working-directory: ./python
run: black --check ./src
- name: Lint with pylint
working-directory: ./python
run: pylint --fail-under=8.0 ./src || exit 1
# The || exit 1 ensures that if pylint fails, the job fails
35 changes: 35 additions & 0 deletions .github/workflows/typescript-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Typescript Check

on:
pull_request:
types: [opened, synchronize, reopened]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: pnpm/[email protected]

- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install Dependencies
working-directory: ./typescript
run: pnpm i

- name: Lint
working-directory: ./typescript
run: pnpm format & pnpm lint

- name: Test
working-directory: ./typescript
run: pnpm test:ci

- name: Build
working-directory: ./typescript
run: pnpm build

0 comments on commit f886d06

Please sign in to comment.