Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
API_BASE_URL=https://api.onspring.com
SANDBOX_API_KEY=NEEDS_TO_BE_SET

# Apps
TEST_APP_ID=NEEDS_TO_BE_SET
TEST_SURVEY_ID=NEEDS_TO_BE_SET
TEST_APP_ID_NO_ACCESS=NEEDS_TO_BE_SET
TEST_APP_IDS=NEEDS_TO_BE_SET
TEST_APP_IDS_NO_ACCESS=NEEDS_TO_BE_SET

# Fields
TEST_FIELD_ID=NEEDS_TO_BE_SET
TEST_FIELD_ID_NO_ACCESS=NEEDS_TO_BE_SET
TEST_FIELD_IDS=NEEDS_TO_BE_SET
TEST_FIELD_IDS_NO_ACCESS=NEEDS_TO_BE_SET

# Records
TEST_RECORD=NEEDS_TO_BE_SET
TEST_SURVEY_RECORD_ID=NEEDS_TO_BE_SET
TEST_TEXT_FIELD=NEEDS_TO_BE_SET

# Files — Attachment
TEST_ATTACHMENT_FIELD=NEEDS_TO_BE_SET
TEST_ATTACHMENT_FIELD_NO_ACCESS_FIELD=NEEDS_TO_BE_SET
TEST_ATTACHMENT_FIELD_NO_ACCESS_APP=NEEDS_TO_BE_SET
TEST_ATTACHMENT=NEEDS_TO_BE_SET

# Files — Image
TEST_IMAGE_FIELD=NEEDS_TO_BE_SET
TEST_IMAGE=NEEDS_TO_BE_SET

# Lists
TEST_LIST_FIELD=NEEDS_TO_BE_SET
TEST_LIST_FIELD_NO_ACCESS=NEEDS_TO_BE_SET
TEST_LIST_ID=NEEDS_TO_BE_SET
TEST_LIST_ID_NO_ACCESS=NEEDS_TO_BE_SET
TEST_LIST_ITEM_ID_NO_ACCESS=NEEDS_TO_BE_SET

# Reports
TEST_REPORT=NEEDS_TO_BE_SET
TEST_REPORT_NO_ACCESS=NEEDS_TO_BE_SET
TEST_REPORT_WITH_CHART_DATA=NEEDS_TO_BE_SET
20 changes: 20 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish
on:
push:
branches: [master]
jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Setup UV
uses: astral-sh/setup-uv@v8.2.0
with:
python-version: "3.13"
- name: Run uv build
run: uv build
- name: Publish to PYPI
uses: pypa/gh-action-pypi-publish@release/v1
40 changes: 40 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Pull Request
on:
pull_request:
branches: [master]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Setup UV
uses: astral-sh/setup-uv@v8.2.0
with:
python-version: "3.13"
- name: Run uv sync
run: uv sync
- name: Run linter
run: uv run ruff check src/ tests/
- name: Run formatter
run: uv run ruff format --check src/ tests/
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup UV
uses: astral-sh/setup-uv@v8.2.0
with:
python-version: ${{ matrix.python-version }}
- name: Run uv sync
run: uv sync
- name: Load sandbox credentials
env:
SANDBOX_ENV: ${{ secrets.SANDBOX_ENV }}
run: printf '%s\n' "$SANDBOX_ENV" > .env
- name: Run tests
run: uv run pytest tests/ -q
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ dmypy.json
# Cython debug symbols
cython_debug/

# Ruff
.ruff_cache/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
Expand Down
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"cSpell.words": [
"autouse",
"pytestmark",
"respx"
]
}
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 Stevan Freeborn
Copyright (c) 2026 Stevan Freeborn

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading
Loading