forked from ekzhu/datasketch
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.06 KB
/
Copy pathtest-mongo.yml
File metadata and controls
42 lines (39 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Test Mongo
on:
push:
branches: [master]
pull_request:
branches: [master]
permissions:
contents: read
jobs:
build:
runs-on: "ubuntu-latest"
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v7
- name: Setup MongoDB
uses: supercharge/mongodb-github-action@1.12.1
- name: Install uv and setup python ${{ matrix.python-version }}
uses: astral-sh/setup-uv@v7
with:
activate-environment: true
python-version: ${{ matrix.python-version }}
enable-cache: true
- name: Install dependencies
run: |
uv pip install flake8 pytest
- name: Install package
run: |
# Disable Cassandra optional extensions (faster testing).
export CASS_DRIVER_NO_EXTENSIONS=1
uv pip install -e ."[test,aio,bloom]"
uv pip list
- name: Test with pytest
run: |
export DO_TEST_MONGO=true
uv run pytest
- name: Minimize uv cache
run: uv cache prune --ci