diff --git a/.gitea/workflows/tests.yml b/.gitea/workflows/tests.yml new file mode 100644 index 0000000..518dc82 --- /dev/null +++ b/.gitea/workflows/tests.yml @@ -0,0 +1,39 @@ +name: Tests +on: + pull_request: + push: + branches: [main] +jobs: + python: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + - name: Install pytest + run: pip install pytest + - name: Run language server tests + working-directory: server + # The server's dependencies are bundled in server/libs. + env: + PYTHONPATH: libs + run: python -m pytest tests/python_tests -q + node: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install NodeJS + uses: actions/setup-node@v4 + with: + node-version: 20 + - name: Install NPM Packages + run: | + npm ci + cd ./client + npm ci + - name: Run extension tests + run: node --test test/ + - name: Build extension + run: npm run package