Skip to content

Commit 4fa9f6f

Browse files
committed
Add new CI jobs
1 parent fe55987 commit 4fa9f6f

File tree

3 files changed

+52
-13
lines changed

3 files changed

+52
-13
lines changed

.github/workflows/main.yml

+15-2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
- check-pypy38
3232
- check-py39
3333
- check-py310
34+
- check-py310-pyjion
3435
- check-quality
3536
- lint-ruby
3637
- check-ruby-tests
@@ -46,8 +47,10 @@ jobs:
4647
- check-django32
4748
- check-django31
4849
- check-django22
49-
- check-pandas111
50-
- check-pandas100
50+
- check-pandas13
51+
- check-pandas12
52+
- check-pandas11
53+
- check-pandas10
5154
- check-pandas25
5255
fail-fast: false
5356
steps:
@@ -70,6 +73,16 @@ jobs:
7073
restore-keys: |
7174
deps-${{ runner.os }}-${{ hashFiles('requirements/tools.txt') }}
7275
deps-${{ runner.os }}
76+
- name: Install dotnet6 for Pyjion
77+
if: ${{ endsWith(matrix.task, '-pyjion') }}
78+
run: |
79+
wget https://packages.microsoft.com/config/ubuntu/21.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
80+
sudo dpkg -i packages-microsoft-prod.deb
81+
rm packages-microsoft-prod.deb
82+
sudo apt-get update
83+
sudo apt-get install -y apt-transport-https && \
84+
sudo apt-get update && \
85+
sudo apt-get install -y dotnet-sdk-6.0
7386
- name: Run tests
7487
run: TASK=${{ matrix.task }} ./build.sh
7588
- name: Upload coverage data

hypothesis-python/tox.ini

+31-10
Original file line numberDiff line numberDiff line change
@@ -22,49 +22,70 @@ commands =
2222
prettyquick: python -m pytest tests/cover/
2323
custom: python -m pytest {posargs}
2424

25+
[testenv:py310-pyjion]
26+
deps =
27+
-r../requirements/test.txt
28+
pyjion
29+
commands =
30+
pyjion -m pytest tests/cover tests/pytest tests/nocover -n auto
31+
2532
[testenv:quality]
2633
deps=
2734
-r../requirements/test.txt
2835
commands=
29-
python -m pytest tests/quality/ -n2
36+
python -m pytest tests/quality/ -n auto
3037

3138
[testenv:pandas25]
3239
deps =
3340
-r../requirements/test.txt
3441
pandas~=0.25.0
3542
commands =
36-
python -m pytest tests/pandas -n2
43+
python -m pytest tests/pandas -n auto
3744

38-
[testenv:pandas100]
45+
[testenv:pandas10]
3946
deps =
4047
-r../requirements/test.txt
4148
pandas~=1.0.0
4249
commands =
43-
python -m pytest tests/pandas -n2
50+
python -m pytest tests/pandas -n auto
51+
52+
[testenv:pandas11]
53+
deps =
54+
-r../requirements/test.txt
55+
pandas~=1.1.5
56+
commands =
57+
python -m pytest tests/pandas -n auto
58+
59+
[testenv:pandas12]
60+
deps =
61+
-r../requirements/test.txt
62+
pandas~=1.2.5
63+
commands =
64+
python -m pytest tests/pandas -n auto
4465

45-
[testenv:pandas111]
66+
[testenv:pandas13]
4667
deps =
4768
-r../requirements/test.txt
48-
pandas~=1.1.1
69+
pandas~=1.3.4
4970
commands =
50-
python -m pytest tests/pandas -n2
71+
python -m pytest tests/pandas -n auto
5172

5273
[testenv:django22]
5374
commands =
5475
pip install .[pytz]
55-
pip install django~=2.2.0
76+
pip install django~=2.2.24
5677
python -m tests.django.manage test tests.django
5778

5879
[testenv:django31]
5980
commands =
6081
pip install .[pytz]
61-
pip install django~=3.1.1
82+
pip install django~=3.1.13
6283
python -m tests.django.manage test tests.django
6384

6485
[testenv:django32]
6586
commands =
6687
pip install .[pytz]
67-
pip install django~=3.2.0
88+
pip install django~=3.2.9
6889
python -m tests.django.manage test tests.django
6990

7091
[testenv:nose]

tooling/src/hypothesistooling/__main__.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,11 @@ def check_py310():
448448
run_tox("py310-full", PY310)
449449

450450

451+
@python_tests
452+
def check_py310_pyjion():
453+
run_tox("py310-pyjion", PY310)
454+
455+
451456
@python_tests
452457
def check_pypy36():
453458
run_tox("pypy3-full", PYPY36)
@@ -472,7 +477,7 @@ def standard_tox_task(name):
472477

473478
for n in [22, 31, 32]:
474479
standard_tox_task(f"django{n}")
475-
for n in [25, 100, 111]:
480+
for n in [25, 10, 11, 12, 13]:
476481
standard_tox_task(f"pandas{n}")
477482

478483
standard_tox_task("coverage")

0 commit comments

Comments
 (0)