Commit 5daebd9
authored
Enable pytest-asyncio tests in CI (#92)
* Set asyncio_mode="auto" in pytest.ini config
Xref https://pytest-asyncio.readthedocs.io/en/latest/reference/configuration.html#asyncio-mode
* Refactor contents of test_cog.py into a proper unit test
Put everything in an `async def test_cog_s3` function, with assertions checking different metadata attributes.
* Uncomment `uv run pytest` in .github/workflows/test-python.yml
* Add `--color=yes`flag to force GitHub Actions logs to have color
Xref pytest-dev/pytest#7443
* Ruff format
* Remove timing assertions
* Bump astral-sh/setup-uv from 3 to 6
Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from 3 to 6.
- [Release notes](https://github.com/astral-sh/setup-uv/releases)
- [Commits](astral-sh/setup-uv@v3...v6)
* Remove `uv sync` part
* Bump pytest-asyncio from 0.24.0 to 0.26.0
Bumps [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) from 0.24.0 to 0.26.0.
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases)
- [Commits](pytest-dev/pytest-asyncio@v0.24.0...v0.26.0)
Also set asyncio_default_fixture_loop_scope="function" following pytest-dev/pytest-asyncio#924 (comment)
* Revert "Remove `uv sync` part"
This reverts commit 638d602.
* Typo geoindex-rs -> async-tiff
* Add back `--no-project` flag to `uv run` commands
Partially undo bfb3a431 parent c720f01 commit 5daebd9
File tree
4 files changed
+37
-33
lines changed- .github/workflows
- python
- tests
4 files changed
+37
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | | - | |
62 | | - | |
| 61 | + | |
63 | 62 | | |
64 | 63 | | |
65 | 64 | | |
66 | | - | |
| 65 | + | |
67 | 66 | | |
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
71 | 70 | | |
72 | | - | |
73 | | - | |
74 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
4 | 2 | | |
5 | 3 | | |
6 | | - | |
7 | | - | |
8 | 4 | | |
9 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
26 | 22 | | |
27 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments