Add generic error handling to Django widget #764
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
test-python: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
services: | |
minio: | |
# This image does not require any command arguments (which GitHub Actions don't support) | |
image: "bitnami/minio:latest" | |
env: | |
MINIO_ROOT_USER: minioAccessKey | |
MINIO_ROOT_PASSWORD: minioSecretKey | |
ports: | |
- 9000:9000 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install tox | |
run: | | |
pip install --upgrade pip | |
pip install tox | |
- name: Run tests | |
env: | |
MINIO_STORAGE_ENDPOINT: "localhost:9000" | |
MINIO_STORAGE_ACCESS_KEY: minioAccessKey | |
MINIO_STORAGE_SECRET_KEY: minioSecretKey | |
MINIO_STORAGE_MEDIA_BUCKET_NAME: s3ff-test | |
run: | | |
tox | |
test-javascript: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: current | |
- name: Build and test Javascript client | |
working-directory: ./javascript-client | |
run: | | |
npm ci | |
npm run build | |
npm run lint | |
- name: Build and test widget | |
working-directory: ./widget | |
run: | | |
npm ci | |
npm run build | |
npm run lint |