-
Notifications
You must be signed in to change notification settings - Fork 175
110 lines (88 loc) · 2.52 KB
/
tests.yml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: Book tests
on:
push:
branches:
main
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
env:
MOZ_HEADLESS: 1
LC_ALL: en_GB.UTF-8
LANG: en_GB.UTF8
LANGUAGE: "en_GB:en"
steps:
- uses: actions/checkout@v3
- name: checkout submodules
run: |
sed -i '[email protected]:_https://github.com/_' .gitmodules
git submodule update --init --recursive
- name: setup Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "Elspeth See-Eye"
git config --global init.defaultBranch main
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Install apt stuff and other dependencies
run: |
sudo add-apt-repository ppa:mozillateam/ppa
sudo apt update -y
sudo apt install -y asciidoctor language-pack-en ruby-coderay firefox-esr tree locales
sudo locale-gen en_GB.UTF-8
# - name: Install asciidoc and other ruby dependencies
# run: |
# sudo gem install coderay
- name: Install Python requirements.txt
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Check environment
run: |
locale -a
locale
env
- name: Test chapter 1
if: always()
run: |
make test_chapter_01
- name: Test chapter 2 unittest
if: always()
run: |
make test_chapter_02_unittest
- name: Test chapter 3 first view
if: always()
run: |
make test_chapter_03_unit_test_first_view
- name: Test chapter 4 philosophy
if: always()
run: |
make test_chapter_04_philosophy_and_refactoring
- name: Test chapter 5 post and db
if: always()
run: |
make test_chapter_05_post_and_database
- name: Test chapter 6 explicit waits
if: always()
run: |
make test_chapter_06_explicit_waits_1
- name: Test chapter 7 working incrementally
if: always()
run: |
make test_chapter_07_working_incrementally
- name: Test chapter 8 prettification
if: always()
run: |
make test_chapter_08_prettification
- name: Run unit tests
if: always()
run: |
./tests/update_source_repo.py
./run_test_tests.sh
# - name: Test all chapters in parallel, yolo
# run: |
# make build
# pytest --tb=short --color=yes --numprocesses=4 tests/test_chapter_*