Skip to content

Commit 161e264

Browse files
committed
differences for PR #6
1 parent 35738f5 commit 161e264

File tree

9 files changed

+319
-79
lines changed

9 files changed

+319
-79
lines changed

.DS_Store

-6 KB
Binary file not shown.

10-CI.md

Lines changed: 246 additions & 78 deletions
Large diffs are not rendered by default.

fig/github_action.png

95.1 KB
Loading

fig/github_actions_button.png

8.88 KB
Loading

fig/github_repo_view.png

34.3 KB
Loading

fig/matrix_tests.png

29.7 KB
Loading

fig/pull_request_test_failed.png

49.2 KB
Loading

files/10-CI/tests.yaml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# This is just the name of the action, you can call it whatever you like.
2+
name: Tests (pytest)
3+
4+
# This sets the events that trigger the action. In this case, we are telling
5+
# GitHub to run the tests whenever a push is made to the repository.
6+
# The trailing colon is intentional!
7+
on:
8+
push:
9+
# Only check when Python files are changed.
10+
# Don't need to check when the README is updated!
11+
paths:
12+
- '**.py'
13+
- 'pyproject.toml'
14+
pull_request:
15+
paths:
16+
- '**.py'
17+
- 'pyproject.toml'
18+
# Only check when somebody raises a pull_request to main.
19+
branches: [main]
20+
# This allows you to run the tests manually if you choose
21+
workflow_dispatch:
22+
23+
24+
# This is a list of jobs that the action will run. In this case, we have only
25+
# one job called build.
26+
jobs:
27+
28+
build:
29+
30+
strategy:
31+
matrix:
32+
python_version: ["3.12", "3.13", "3.14"]
33+
os: ["ubuntu-latest", "windows-latest"]
34+
exclude:
35+
- os: "windows-latest"
36+
python_version: "3.12"
37+
- os: "windows-latest"
38+
python_version: "3.13"
39+
40+
# This is the environment that the job will run on.
41+
runs-on: ${{ matrix.os }}
42+
43+
# This is a list of steps that the job will run. Each step is a command
44+
# that will be executed on the environment.
45+
steps:
46+
47+
# This command tells GitHub to use a pre-built action. In this case, we
48+
# are using the actions/checkout action to check out the repository. This
49+
# just means that GitHub will clone this repository to the current
50+
# working directory.
51+
- uses: actions/checkout@v6
52+
53+
# This is the name of the step. This is just a label that will be
54+
# displayed in the GitHub UI.
55+
- name: Set up Python ${{ matrix.python_version }}
56+
# This command tells GitHub to use a pre-built action. In this case, we
57+
# are using the actions/setup-python action to set up Python 3.12.
58+
uses: actions/setup-python@v6
59+
with:
60+
python-version: ${{ matrix.python_version }}
61+
62+
# This step installs the dependencies for the project such as pytest,
63+
# numpy, pandas, etc using the requirements.txt file we created earlier.
64+
- name: Install dependencies
65+
run: |
66+
python -m pip install --upgrade pip
67+
pip install -r requirements.txt
68+
69+
# This step runs the tests using the pytest command.
70+
- name: Run tests
71+
run: |
72+
pytest

md5sum.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"episodes/07-fixtures.Rmd" "56120a2cb97196bf0f3ce2060aa6a025" "site/built/07-fixtures.md" "2026-02-10"
1515
"episodes/08-parametrization.Rmd" "08fb3f570d19e48f7d8a4841c9b13071" "site/built/08-parametrization.md" "2026-02-10"
1616
"episodes/09-testing-output-files.Rmd" "3ec8b815934521f0a4d244bcb585a8d6" "site/built/09-testing-output-files.md" "2026-02-10"
17-
"episodes/10-CI.Rmd" "f945c9f9ff27fe67c26730869d9c15e6" "site/built/10-CI.md" "2026-02-10"
17+
"episodes/10-CI.Rmd" "f11c3ca3ed260d840c71f0c3f2684f42" "site/built/10-CI.md" "2026-02-10"
1818
"instructors/instructor-notes.md" "cae72b6712578d74a49fea7513099f8c" "site/built/instructor-notes.md" "2026-02-10"
1919
"learners/reference.md" "1e67e9d33803966d818d4be17ae556f9" "site/built/reference.md" "2026-02-10"
2020
"learners/setup.md" "1f60fdc531062620b4efd2d68ceebaaa" "site/built/setup.md" "2026-02-10"

0 commit comments

Comments
 (0)