Skip to content

Commit f09bc5c

Browse files
authored
Merge branch 'main' into master
2 parents 34a2fcf + 2b5955a commit f09bc5c

File tree

194 files changed

+14354
-20085
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

194 files changed

+14354
-20085
lines changed

.git-blame-ignore-revs

Whitespace-only changes.

.github/workflows/tests.yml

Lines changed: 32 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -1,92 +1,38 @@
1+
---
12
name: Book tests
23

3-
on: [push]
4+
on:
5+
push:
6+
branches:
7+
main
8+
pull_request:
49

510
jobs:
6-
tests:
7-
11+
chapter-tests:
812
runs-on: ubuntu-latest
9-
10-
env:
11-
MOZ_HEADLESS: 1
12-
LC_ALL: en_GB.UTF-8
13-
LANG: en_GB.UTF8
14-
LANGUAGE: "en_GB:en"
15-
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
test_chapter: [
17+
test_chapter_01,
18+
test_chapter_02_unittest,
19+
test_chapter_03_unit_test_first_view,
20+
test_chapter_04_philosophy_and_refactoring,
21+
test_chapter_05_post_and_database,
22+
test_chapter_06_explicit_waits_1,
23+
test_chapter_07_working_incrementally,
24+
test_chapter_08_prettification,
25+
# test_chapter_09_docker,
26+
# test_chapter_10_production_readiness,
27+
# test_chapter_11_ansible,
28+
test_chapter_12_organising_test_files,
29+
test_chapter_13_database_layer_validation,
30+
test_chapter_14_simple_form,
31+
unit-test
32+
]
1633
steps:
17-
- uses: actions/checkout@v1
18-
19-
- name: checkout submodules
20-
run: |
21-
sed -i '[email protected]:_https://github.com/_' .gitmodules
22-
git submodule update --init --recursive
23-
24-
- name: setup git user
25-
run: |
26-
git config --global user.email "[email protected]"
27-
git config --global user.name "Elspeth See-Eye"
28-
29-
- name: Set up Python 3.11
30-
uses: actions/setup-python@v1
31-
with:
32-
python-version: 3.11
33-
34-
- name: Install apt stuff and other dependencies
35-
run: |
36-
sudo apt update -y
37-
sudo apt install -y asciidoctor language-pack-en ruby-coderay firefox tree locales
38-
sudo locale-gen en_GB.UTF-8
39-
40-
# - name: Install asciidoc and other ruby dependencies
41-
# run: |
42-
# sudo gem install coderay
43-
44-
- name: Install Python requirements.txt
45-
run: |
46-
python -m pip install --upgrade pip
47-
pip install -r requirements.txt
48-
49-
- name: Check environment
50-
run: |
51-
locale -a
52-
locale
53-
env
54-
55-
- name: Test chapter 1
56-
if: always()
57-
run: |
58-
make test_chapter_01
59-
60-
- name: Test chapter 2
61-
if: always()
62-
run: |
63-
make test_chapter_02_unittest
64-
65-
- name: Test chapter 3
66-
if: always()
67-
run: |
68-
make test_chapter_unit_test_first_view
69-
70-
- name: Test chapter 4
71-
if: always()
72-
run: |
73-
make test_chapter_philosophy_and_refactoring
74-
75-
- name: Test chapter 5
76-
if: always()
77-
run: |
78-
make test_chapter_post_and_database
79-
80-
- name: Test chapter 6
81-
if: always()
82-
run: |
83-
make test_chapter_explicit_waits_1
84-
85-
- name: Test chapter 7
86-
if: always()
87-
run: |
88-
make test_chapter_working_incrementally
89-
# - name: Test all chapters in parallel, yolo
90-
# run: |
91-
# make build
92-
# pytest --tb=short --color=yes --numprocesses=4 tests/test_chapter_*
34+
- uses: actions/checkout@v4
35+
- id: foo
36+
uses: hjwp/github-actions@v6
37+
with:
38+
test_chapter: ${{ matrix.test_chapter }}

.gitignore

Lines changed: 38 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,44 @@
11
*.pyc
2-
misc/abandoned_roman_numerals_example
3-
docs/atlas_docs/
4-
proposals
5-
tags
6-
pdf_drafts
7-
pycon
8-
source/*/static
9-
source/*/.venv
10-
source/*/database
11-
chapter_*.html
12-
appendix_*.html
13-
outline_and_future*.html
14-
pre-requisite-installations.html
15-
preface.html
16-
epilogue.html
17-
bibliography.html
18-
part2.html
19-
acknowledgments.html
20-
book.harry.asciidoc
21-
harrybook.asciidoc
22-
part1.harry.asciidoc
23-
part1.harry.html
24-
part1.html
25-
part2.harry.asciidoc
26-
part2.harry.html
27-
part3.harry.asciidoc
28-
part3.harry.html
29-
part3.html
30-
book.harry.html
31-
praise.harry.html
32-
wordcounts.*
33-
feedback
34-
downloads/*.js
35-
downloads/mock*
36-
misc/promo/
37-
misc/Vagrantfile
38-
misc/superlists-repo-django16-backup.zip
39-
tdd-tutorial-materials
40-
misc/Invoice-Percival-1
41-
video
42-
misc/*conference_report.md
43-
video_plug.html
44-
tests/.cache/
45-
workshops/js-testing-with-jasmine.html
46-
chapter_philosophy_and_refactoring.html
47-
chapter_unit_test_first_view.html
48-
chapter_02_unittest.html
492
.cache
503
.vagrant
514
*-cloudimg-console.log
52-
tech review/
535
.venv
54-
geckodriver.log
556
.pytest_cache
56-
2018-06-12-14-16-35.098-VBoxSVC-24136.log
7+
8+
/chapter_*.html
9+
/appendix_*.html
10+
/part*.html
11+
/outline_and_future*.html
12+
/pre-requisite-installations.html
13+
/preface.html
14+
/epilogue.html
15+
/bibliography.html
16+
/acknowledgments.html
17+
/video_plug.html
18+
/part*.forbook.asciidoc
19+
/praise.forbook.html
20+
21+
/misc/abandoned_roman_numerals_example
22+
/docs/atlas_docs/
23+
/proposals
24+
/tags
25+
/pdf_drafts
26+
/pycon
27+
/source/*/static
28+
/source/*/database
29+
/wordcounts.*
30+
/feedback
31+
/downloads/*.js
32+
/downloads/mock*
33+
/misc/promo/
34+
/misc/Vagrantfile
35+
/misc/superlists-repo-django16-backup.zip
36+
/tdd-tutorial-materials
37+
/misc/Invoice-Percival-1
38+
/video
39+
/misc/*conference_report.md
40+
/tests/.cache/
41+
/workshops/js-testing-with-jasmine.html
42+
/tech review/
43+
.vagrant.d
44+
*.egg-info

.gitmodules

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,37 @@
55
path = source/chapter_02_unittest/superlists
66
url = [email protected]:hjwp/book-example.git
77
[submodule "source/chapter_03/superlists"]
8-
path = source/chapter_unit_test_first_view/superlists
8+
path = source/chapter_03_unit_test_first_view/superlists
99
url = [email protected]:hjwp/book-example.git
1010
[submodule "source/chapter_04/superlists"]
11-
path = source/chapter_philosophy_and_refactoring/superlists
11+
path = source/chapter_04_philosophy_and_refactoring/superlists
1212
url = [email protected]:hjwp/book-example.git
1313
[submodule "source/chapter_05/superlists"]
14-
path = source/chapter_post_and_database/superlists
14+
path = source/chapter_05_post_and_database/superlists
1515
url = [email protected]:hjwp/book-example.git
1616
[submodule "source/chapter_06/superlists"]
17-
path = source/chapter_explicit_waits_1/superlists
17+
path = source/chapter_06_explicit_waits_1/superlists
1818
url = [email protected]:hjwp/book-example.git
1919
[submodule "source/chapter_07/superlists"]
20-
path = source/chapter_working_incrementally/superlists
20+
path = source/chapter_07_working_incrementally/superlists
2121
url = [email protected]:hjwp/book-example.git
2222
[submodule "source/chapter_08/superlists"]
23-
path = source/chapter_prettification/superlists
23+
path = source/chapter_08_prettification/superlists
2424
url = [email protected]:hjwp/book-example.git
2525
[submodule "source/chapter_09/superlists"]
26-
path = source/chapter_manual_deployment/superlists
26+
path = source/chapter_09_docker/superlists
2727
url = [email protected]:hjwp/book-example.git
28-
[submodule "source/chapter_10/superlists"]
29-
path = source/chapter_automate_deployment_with_fabric/superlists
28+
[submodule "source/chapter_10_production_readiness/superlists"]
29+
path = source/chapter_10_production_readiness/superlists
3030
url = [email protected]:hjwp/book-example.git
3131
[submodule "source/chapter_11/superlists"]
32-
path = source/chapter_database_layer_validation/superlists
32+
path = source/chapter_13_database_layer_validation/superlists
3333
url = [email protected]:hjwp/book-example.git
3434
[submodule "source/chapter_12/superlists"]
35-
path = source/chapter_simple_form/superlists
35+
path = source/chapter_14_simple_form/superlists
3636
url = [email protected]:hjwp/book-example.git
3737
[submodule "source/chapter_13/superlists"]
38-
path = source/chapter_advanced_forms/superlists
38+
path = source/chapter_15_advanced_forms/superlists
3939
url = [email protected]:hjwp/book-example.git
4040
[submodule "source/chapter_14/superlists"]
4141
path = source/chapter_javascript/superlists
@@ -94,9 +94,9 @@
9494
[submodule "source/chapter_fixtures_and_wait_decorator/superlists"]
9595
path = source/chapter_fixtures_and_wait_decorator/superlists
9696
url = [email protected]:hjwp/book-example.git
97-
[submodule "source/chapter_organising_test_files/superlists"]
98-
path = source/chapter_organising_test_files/superlists
97+
[submodule "source/chapter_12_organising_test_files/superlists"]
98+
path = source/chapter_12_organising_test_files/superlists
9999
url = [email protected]:hjwp/book-example.git
100-
[submodule "source/chapter_making_deployment_production_ready/superlists"]
101-
path = source/chapter_making_deployment_production_ready/superlists
100+
[submodule "source/chapter_11_ansible/superlists"]
101+
path = source/chapter_11_ansible/superlists
102102
url = [email protected]:hjwp/book-example.git

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.11
1+
3.12

.travis.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)