Skip to content

Commit ababbdc

Browse files
authored
Allow pull requests for CI. (#164)
* Allow pull requests for CI. * Try Python 3.12 for the extra tests. * Try using changedir. * Simplify the integration test by fixing the test input data. * Restore extra tests to 3.13.
1 parent 1fccfea commit ababbdc

File tree

3 files changed

+37
-6
lines changed

3 files changed

+37
-6
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Python package
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- '**'
9+
pull_request:
410

511
jobs:
612
build:

testresults.tap_example

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
1..21
2+
# TAP results for homeschool/accounts/tests/test_forms.py
3+
ok 1 homeschool/accounts/tests/test_forms.py::TestSigninForm.test_create_user
4+
ok 2 homeschool/accounts/tests/test_forms.py::TestSigninForm.test_existing_user
5+
ok 3 homeschool/accounts/tests/test_forms.py::TestSigninForm.test_invalid_email
6+
# TAP results for homeschool/accounts/tests/test_middleware.py
7+
ok 4 homeschool/accounts/tests/test_middleware.py::TestAccountGateMiddleware.test_allow_list
8+
ok 5 homeschool/accounts/tests/test_middleware.py::TestAccountGateMiddleware.test_allow_list_resolves
9+
ok 6 homeschool/accounts/tests/test_middleware.py::TestAccountGateMiddleware.test_anonymous_user
10+
ok 7 homeschool/accounts/tests/test_middleware.py::TestAccountGateMiddleware.test_inactive_redirect
11+
ok 8 homeschool/accounts/tests/test_middleware.py::TestAccountGateMiddleware.test_no_gate_url_redirect
12+
ok 9 homeschool/accounts/tests/test_middleware.py::TestAccountGateMiddleware.test_request_has_account
13+
# TAP results for homeschool/accounts/tests/test_models.py
14+
ok 10 homeschool/accounts/tests/test_models.py::TestAccount.test_email
15+
ok 11 homeschool/accounts/tests/test_models.py::TestAccount.test_factory
16+
ok 12 homeschool/accounts/tests/test_models.py::TestAccount.test_trial_end
17+
# TAP results for homeschool/accounts/tests/test_stripe_gateway.py
18+
ok 13 homeschool/accounts/tests/test_stripe_gateway.py::TestStripeGateway.test_creates_billing_portal_session
19+
ok 14 homeschool/accounts/tests/test_stripe_gateway.py::TestStripeGateway.test_creates_session
20+
ok 15 homeschool/accounts/tests/test_stripe_gateway.py::TestStripeGateway.test_no_trial_in_stripe_limits
21+
# TAP results for homeschool/accounts/tests/test_stripe_webhooks.py
22+
ok 16 homeschool/accounts/tests/test_stripe_webhooks.py::TestHandleCheckoutSessionCompleted.test_account_active
23+
# TAP results for homeschool/accounts/tests/test_tasks.py
24+
ok 17 homeschool/accounts/tests/test_tasks.py::TestExpireTrials.test_expires_trials
25+
ok 18 homeschool/accounts/tests/test_tasks.py::TestExpireTrials.test_keep_active_trials
26+
ok 19 homeschool/accounts/tests/test_tasks.py::TestExpireTrials.test_other_statuses_not_expired
27+
# TAP results for homeschool/accounts/tests/test_templatetags.py
28+
ok 20 homeschool/accounts/tests/test_templatetags.py::TestTrialBanner.test_display_banner
29+
ok 21 homeschool/accounts/tests/test_templatetags.py::TestTrialBanner.test_non_trialing

tox.ini

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,8 @@ commands = python -m tap
1717
changedir = src
1818

1919
[testenv:integration]
20-
deps =
21-
pytest
22-
pytest-tap
2320
commands =
24-
pytest --tap-files --tap-outdir=results {envsitepackagesdir}/tap
25-
tappy results
21+
tappy testresults.tap_example
2622

2723
[testenv:coverage]
2824
setenv =

0 commit comments

Comments
 (0)