Skip to content

Commit c896f8b

Browse files
committed
fix a notrebook
1 parent b045101 commit c896f8b

File tree

4 files changed

+105
-76
lines changed

4 files changed

+105
-76
lines changed

.github/workflows/ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
pull_request:
6+
types:
7+
- closed
8+
branches:
9+
- main
10+
11+
jobs:
12+
run:
13+
name: to-${{ matrix.torch }}-tr-${{ matrix.transformers }}-ci ${{ matrix.os }}-${{ matrix.python }}
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest]
18+
python: ['3.12']
19+
steps:
20+
- uses: actions/checkout@v3
21+
22+
- uses: actions/setup-python@v4
23+
with:
24+
python-version: ${{ matrix.python }}
25+
26+
- name: Install requirements
27+
run: python -m pip install -r requirements.txt
28+
29+
- name: Install requirements dev
30+
run: python -m pip install -r requirements-dev.txt
31+
32+
- name: Cache pip
33+
uses: actions/cache@v4
34+
with:
35+
path: ~/.cache/pip
36+
key: ${{ runner.os }}-pip-${{ hashFiles('requirements-dev.txt') }}
37+
restore-keys: |
38+
${{ runner.os }}-pip-
39+
${{ runner.os }}-
40+
41+
- name: pip freeze
42+
run: python -m pip freeze
43+
44+
- name: run tests
45+
run: |
46+
pip install pytest
47+
PYTHONPATH=. UNITTEST_GOING=1 pytest --durations=10 _unittests --ignore-glob=**pygame*.py

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ prof
3232
temp_*
3333
essai.txt
3434
schema.proto
35+
images/*
3536
.ipynb_checkpoints
3637
_latex/ensae/*.aux
3738
_latex/ensae/*.idx

_doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
"skl2onnx": ("https://onnx.ai/sklearn-onnx/", None),
102102
"sklearn": ("https://scikit-learn.org/stable/", None),
103103
"skrub": ("https://skrub-data.org/stable/", None),
104-
"torch": ("https://pytorch.org/docs/stable/", None),
104+
"torch": ("https://docs.pytorch.org/stable/", None),
105105
}
106106

107107
# Check intersphinx reference targets exist

_doc/practice/algo-base/exercice_simulation_covid.ipynb

Lines changed: 56 additions & 75 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)