-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* try windows runners * update triggers * trigger with code file update * add new status badges
- Loading branch information
Showing
5 changed files
with
116 additions
and
4 deletions.
There are no files selected for viewing
10 changes: 7 additions & 3 deletions
10
.github/workflows/basic-tests.yml → .github/workflows/basic-tests-linux.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Code tests on macOS | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- '**/*.py' # Run workflow for changes in Python files | ||
- '**/*.ipynb' | ||
- '**/*.yaml' | ||
- '**/*.sh' | ||
pull_request: | ||
branches: [ main ] | ||
paths: | ||
- '**/*.py' | ||
- '**/*.ipynb' | ||
- '**/*.yaml' | ||
- '**/*.sh' | ||
|
||
jobs: | ||
test: | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pytest nbval | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
- name: Test Selected Python Scripts | ||
run: | | ||
pytest ch04/01_main-chapter-code/tests.py | ||
pytest ch05/01_main-chapter-code/tests.py | ||
pytest setup/02_installing-python-libraries/tests.py | ||
- name: Validate Selected Jupyter Notebooks | ||
run: | | ||
pytest --nbval ch02/01_main-chapter-code/dataloader.ipynb | ||
pytest --nbval ch03/01_main-chapter-code/multihead-attention.ipynb | ||
pytest --nbval ch02/04_bonus_dataloader-intuition/dataloader-intuition.ipynb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Code tests on Windows | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- '**/*.py' # Run workflow for changes in Python files | ||
- '**/*.ipynb' | ||
- '**/*.yaml' | ||
- '**/*.sh' | ||
pull_request: | ||
branches: [ main ] | ||
paths: | ||
- '**/*.py' | ||
- '**/*.ipynb' | ||
- '**/*.yaml' | ||
- '**/*.sh' | ||
|
||
jobs: | ||
test: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pytest nbval | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
- name: Test Selected Python Scripts | ||
shell: bash | ||
run: | | ||
pytest ch04/01_main-chapter-code/tests.py | ||
pytest ch05/01_main-chapter-code/tests.py | ||
pytest setup/02_installing-python-libraries/tests.py | ||
- name: Validate Selected Jupyter Notebooks | ||
shell: bash | ||
run: | | ||
pytest --nbval ch02/01_main-chapter-code/dataloader.ipynb | ||
pytest --nbval ch03/01_main-chapter-code/multihead-attention.ipynb | ||
pytest --nbval ch02/04_bonus_dataloader-intuition/dataloader-intuition.ipynb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters