Skip to content

Commit

Permalink
Add CI for unit tests, type check, lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jackietung-redpanda committed Aug 30, 2024
1 parent 9b9e0b7 commit 1a2f4e4
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/test_plugin_uploader.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Test Plugin Uploader

on:
push:
branches:
- main
pull_request:

jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: install deps
working-directory: resources/plugin_uploader
run: pip install -r requirements_dev.txt

- name: run unit tests
working-directory: resources/plugin_uploader
run: pytest .

ruff-lint:
- name: Checkout code
uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.12'

- uses: chartboost/ruff-action@v1
with:
version: 0.4.10
src: './resources/plugin_uploader'

pyright-type-check:
- name: Checkout code
uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: install deps
working-directory: resources/plugin_uploader
run: pip install -r requirements_dev.txt

- name: run pyright
working-directory: resources/plugin_uploader
run: pyright

0 comments on commit 1a2f4e4

Please sign in to comment.