@@ -23,17 +23,16 @@ jobs:
23
23
# Github Actions doesn't support pairing matrix values together, let's improvise
24
24
# https://github.com/github/feedback/discussions/7835#discussioncomment-1769026
25
25
options :
26
- - ["Other", "--ignore=tests/test_replica_set.py --ignore=tests/test_replica_sets.py --ignore=tests/test_sharded_clusters.py"]
27
- - ["Replica Set", "tests/test_replica_set.py"]
28
- - ["Replica Sets", "tests/test_replica_sets.py"]
29
- - ["Sharded", "tests/test_sharded_clusters.py"]
26
+ - ["Other", "--ignore=tests/test_replica_set.py --ignore=tests/test_replica_sets.py --ignore=tests/test_sharded_clusters.py", "3.8" ]
27
+ - ["Replica Set", "tests/test_replica_set.py", "3.9" ]
28
+ - ["Replica Sets", "tests/test_replica_sets.py", "3.10" ]
29
+ - ["Sharded", "tests/test_sharded_clusters.py", "3.12" ]
30
30
steps :
31
- - uses : actions/checkout@v3
31
+ - uses : actions/checkout@v4
32
32
- name : Setup Python
33
- uses : actions/setup-python@v2
33
+ uses : actions/setup-python@v5
34
34
with :
35
- cache : ' pip'
36
- cache-dependency-path : ' setup.py'
35
+ python-version : ${{ matrix.options[2] }}
37
36
- name : Install MongoDB
38
37
run : |
39
38
wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key add -
42
41
sudo apt-get install -y mongodb-org
43
42
- name : Install Dependencies
44
43
run : |
45
- pip install -e .
46
- pip install pytest
44
+ pip install -e ".[test]"
47
45
- name : Run Tests
48
46
run : |
49
47
pytest -raXs -v --durations 10 --color=yes ${{ matrix.options[1] }}
0 commit comments