Commit graph

105 commits

Author SHA1 Message Date
Simon Willison
53a3b3c80e
Test improvements and fixed deprecation warnings (#2464)
* `asyncio_default_fixture_loop_scope = function`
* Fix a bunch of BeautifulSoup deprecation warnings
* Fix for PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO [closed]>
* xfail for sql_time_limit tests (these can be flaky in CI)

Refs #2461
2025-02-04 14:49:52 -08:00
Simon Willison
b9047d812a Skip the serial marked tests in pytest coverage
Refs https://github.com/simonw/datasette/issues/2461#issuecomment-2634896235
2025-02-04 11:37:01 -08:00
Simon Willison
72f8ac680a CI against Python 3.13 2024-11-28 17:15:54 -08:00
Simon Willison
4efcc29d02
Test against Python "3.13-dev"
Refs:
- #2320
2024-08-20 19:15:36 -07:00
Alex Garcia
8f86d2af6a
Test against multiple SQLite versions (#2352)
* Use sqlite-versions action for testing multiple versions
2024-06-13 10:09:45 -07:00
Jeroen Van Goey
103b4decbd
fix (typo): Corrected spelling of 'environments' (#2268)
* fix (typo): Corrected spelling of 'environments'

* ci: add test folder to codespell workflow
2024-02-19 14:41:32 -08:00
Simon Willison
81629dbeff Upgrade GitHub Actions, including PyPI publishing 2024-02-17 21:03:41 -08:00
Simon Willison
2e4a03b2c4
Run coverage on Python 3.12
- #2245

I hoped this would run slightly faster than 3.9 but there doesn't appear to be a performance improvement.
2024-01-31 15:31:26 -08:00
Simon Willison
4e1188f60f Upgrade spellcheck.yml workflow 2023-10-08 09:09:45 -07:00
Simon Willison
f130c7c0a8 Deploy with fixtures-metadata.json, refs #2194, #2195 2023-09-21 14:09:57 -07:00
Simon Willison
e86eaaa4f3
Test against Python 3.12 preview (#2175)
https://dev.to/hugovk/help-test-python-312-beta-1508/
2023-09-06 09:16:27 -07:00
Simon Willison
6bfe104d47
DATASETTE_LOAD_PLUGINS environment variable for loading specific plugins
Closes #2164

* Load only specified plugins for DATASETTE_LOAD_PLUGINS=datasette-one,datasette-two
* Load no plugins if DATASETTE_LOAD_PLUGINS=''
* Automated tests in a Bash script for DATASETTE_LOAD_PLUGINS
2023-08-30 15:12:24 -07:00
Simon Willison
a1f3d75a52
Need to stick to Python 3.9 for gcloud 2023-08-28 20:46:12 -07:00
dependabot[bot]
d28f12092d
Bump sphinx, furo, blacken-docs dependencies (#2160)
* Bump the python-packages group with 3 updates

Bumps the python-packages group with 3 updates: [sphinx](https://github.com/sphinx-doc/sphinx), [furo](https://github.com/pradyunsg/furo) and [blacken-docs](https://github.com/asottile/blacken-docs).


Updates `sphinx` from 7.1.2 to 7.2.4
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES)
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v7.1.2...v7.2.4)

Updates `furo` from 2023.7.26 to 2023.8.19
- [Release notes](https://github.com/pradyunsg/furo/releases)
- [Changelog](https://github.com/pradyunsg/furo/blob/main/docs/changelog.md)
- [Commits](https://github.com/pradyunsg/furo/compare/2023.07.26...2023.08.19)

Updates `blacken-docs` from 1.15.0 to 1.16.0
- [Changelog](https://github.com/adamchainz/blacken-docs/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/asottile/blacken-docs/compare/1.15.0...1.16.0)

---
updated-dependencies:
- dependency-name: sphinx
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: python-packages
- dependency-name: furo
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: python-packages
- dependency-name: blacken-docs
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: python-packages
...

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Simon Willison <swillison@gmail.com>
2023-08-28 17:38:32 -07:00
Simon Willison
33251d04e7 Canned query write counters demo, refs #2134 2023-08-09 17:56:27 -07:00
Simon Willison
2fd871a906 Drop support for Python 3.7, refs #2097 2023-07-08 11:40:19 -07:00
Simon Willison
45e6d370ce Install docs dependencies for tests, refs #1153 2023-07-08 11:35:15 -07:00
Simon Willison
50a6355c08 Workaround to get sphinx-build working again, refs 1153 2023-07-08 11:22:21 -07:00
Simon Willison
d45a7213ed codespell>=2.5.5, also spellcheck README - refs #2089 2023-06-29 07:43:01 -07:00
Simon Willison
49184c569c
Action: Deploy a Datasette branch preview to Vercel
Closes #2070
2023-05-09 09:24:28 -07:00
Simon Willison
4880638f13
setup-gcloud 318.0.0
Refs https://til.simonwillison.net/googlecloud/gcloud-error-workaround
2023-01-09 16:02:02 -08:00
Simon Willison
a27c0a0124 Deploy docs on publish using Python 3.9
A workaround for gcloud setup, see:

https://til.simonwillison.net/googlecloud/gcloud-error-workaround

Refs #1963
2022-12-17 19:24:48 -08:00
Simon Willison
0ea139dfe5 Run new HTTPS test in CI, refs #1955 2022-12-17 18:38:26 -08:00
Simon Willison
38d28dd958 Revert "Try running every test at once, refs #1955"
This reverts commit 51ee8caa4a.
2022-12-15 13:05:33 -08:00
Simon Willison
51ee8caa4a Try running every test at once, refs #1955 2022-12-15 12:51:18 -08:00
Simon Willison
27efa8c381 todomvc permissions and fixed DATASETTE_SECRET for new demo
Refs https://github.com/simonw/todomvc-datasette/issues/2
2022-12-01 17:29:44 -08:00
Simon Willison
03f247845e
datasette-ephemeral-tables>=0.2.2
Refs https://github.com/simonw/datasette-ephemeral-tables/issues/5
2022-12-01 16:37:53 -08:00
Simon Willison
e2f71c6f81
Bump ephemeral limit up to 15 minutes per table
Refs #1915
2022-12-01 15:44:43 -08:00
Simon Willison
418eb7c5c6
Try Python 3.9 for Cloud Run deploy, refs #1923 2022-11-30 14:59:17 -08:00
Simon Willison
ec1dde5dd2
Try version 318.0.0 of google-github-actions/setup-gcloud
Refs #1923
2022-11-30 14:50:53 -08:00
Simon Willison
4ddd77e512
No need for pkginfo pin any more
The upstream issue was fixed. Refs #1913
2022-11-29 21:25:40 -08:00
Simon Willison
9f5321ff1e
latest now uses datasette-ephemeral-tables>=0.2.1
Fix for https://github.com/simonw/datasette-ephemeral-tables/issues/4
2022-11-29 20:43:27 -08:00
Simon Willison
7588d27f4a
latest.datasette.io uses datasette-ephemeral-tables>=0.2
To show the countdown timer from:
https://github.com/simonw/datasette-ephemeral-tables/issues/3

Refs #1915
2022-11-29 17:51:15 -08:00
Simon Willison
53a8e5bae5 Deploy datasette-ephemeral-tables plugin
Refs #1915
2022-11-29 15:58:25 -08:00
Simon Willison
4a0bd960e9 Pin pkginfo==1.8.3 as workaround for #1913 2022-11-29 11:57:54 -08:00
Simon Willison
918f356120 Delete mirror-master-and-main.yml
Closes #1865
2022-10-27 11:52:06 -07:00
Simon Willison
05b479224f Don't need pysqlite3-binary any more, refs #1853 2022-10-25 16:03:36 -07:00
Simon Willison
6d085af28c Python 3.11 in CI 2022-10-25 16:03:36 -07:00
Simon Willison
83adf55b2d Deploy one-dot-zero branch preview 2022-10-23 20:28:15 -07:00
Simon Willison
1c29b925d3 Run tests in serial again
Because this didn't fix the issue I'm seeing in #1802

Revert "Run tests in serial, refs #1802"

This reverts commit b91e17280c.
2022-09-05 17:10:52 -07:00
Simon Willison
b91e17280c
Run tests in serial, refs #1802 2022-09-05 16:50:53 -07:00
Simon Willison
ba35105eee
Test --load-extension in GitHub Actions (#1792)
* Run the --load-extension test, refs #1789
* Ran cog, refs #1789
2022-08-23 17:11:45 -07:00
Manuel Kaufmann
663ac431fe
Use Read the Docs action v1 (#1778)
Read the Docs repository was renamed from `readthedocs/readthedocs-preview` to `readthedocs/actions/`. Now, the `preview` action is under `readthedocs/actions/preview` and is tagged as `v1`
2022-08-19 17:04:16 -07:00
Simon Willison
bca2d95d02
Configure readthedocs/readthedocs-preview 2022-08-02 16:38:02 -07:00
Naveen
2e9751672d
chore: Set permissions for GitHub actions (#1740)
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
2022-05-31 12:28:40 -07:00
Simon Willison
d60f163528
Run on push and PR, closes #1737 2022-05-02 16:40:49 -07:00
Simon Willison
c0cbcf2aba Tweaks to test scripts, refs #1737 2022-05-02 16:36:58 -07:00
Simon Willison
847d6b1aac Test wheel against Pyodide, refs #1737, #1733 2022-05-02 16:32:24 -07:00
Simon Willison
289e4cf80a Finished applying blacken-docs, closes #1718 2022-04-24 09:17:59 -07:00
Simon Willison
36573638b0 Apply Black to code examples in documentation, refs #1718
Uses blacken-docs. This has a deliberate error which I hope will fail CI.
2022-04-24 08:50:43 -07:00