diff --git a/.github/workflows/test_plugin_uploader.yml b/.github/workflows/test_plugin_uploader.yml new file mode 100644 index 0000000000..5606f87d6c --- /dev/null +++ b/.github/workflows/test_plugin_uploader.yml @@ -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