Skip to content

Add CI for unit tests, type check, lint #1

Add CI for unit tests, type check, lint

Add CI for unit tests, type check, lint #1

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

Check failure on line 29 in .github/workflows/test_plugin_uploader.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test_plugin_uploader.yml

Invalid workflow file

You have an error in your yaml syntax on line 29
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