Skip to content

Commit cef6a0d

Browse files
authored
Allègement des actions github (#437)
* update workdlow * footnote * update * update * test script * quarto version * test tout * latest
1 parent 3276558 commit cef6a0d

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

.github/workflows/netlify-test.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,16 @@ jobs:
1212
runs-on: ubuntu-latest
1313
container: linogaliana/python-datascientist:latest
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
1616
with:
1717
fetch-depth: 0
1818
ref: ${{ github.event.pull_request.head.ref }}
1919
repository: ${{github.event.pull_request.head.repo.full_name}}
2020
- name: Configure safe.directory # Workaround for actions/checkout#760
2121
run: git config --global --add safe.directory /__w/python-datascientist/python-datascientist
22-
- shell: bash
23-
run: |
24-
conda info
25-
conda list
2622
- name: Render website
2723
run: |
24+
quarto --version
2825
git diff --name-only origin/master origin/${GITHUB_HEAD_REF} >> diff
2926
python build/tweak_render.py
3027
cat _quarto.yml

.github/workflows/prod.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- main
77
- master
8+
- light
89

910
jobs:
1011
pages:
@@ -20,19 +21,12 @@ jobs:
2021
repository: ${{github.event.pull_request.head.repo.full_name}}
2122
- name: Configure safe.directory # Workaround for actions/checkout#760
2223
run: git config --global --add safe.directory /__w/python-datascientist/python-datascientist
23-
- shell: bash
24-
run: |
25-
conda info
26-
conda list
2724
- name: Render website
2825
run: |
2926
quarto render --to html
3027
- name: Publish to Pages
28+
if: github.ref == 'refs/heads/master'
3129
run: |
3230
git config --global user.email quarto-github-actions-publish@example.com
3331
git config --global user.name "Quarto GHA Workflow Runner"
3432
quarto publish gh-pages . --no-render --no-browser
35-
- uses: actions/upload-artifact@v2
36-
with:
37-
name: Website
38-
path: public/

content/manipulation/02a_pandas_tutorial.qmd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ Avec `astype`, on peut gérer les erreurs de conversion avec le paramètre `erro
401401
:::
402402

403403
L'affichage des DataFrames est très ergonomique. On obtiendrait le même *output*
404-
avec `display(df)`[^3]. Les premières et dernières lignes s'affichent
404+
avec `display(df)`. Les premières et dernières lignes s'affichent
405405
automatiquement. Autrement, on peut aussi faire:
406406

407407
* `head` qui permet, comme son
@@ -1032,7 +1032,6 @@ En particulier, il faut noter que `apply` avec le paramètre `axis=1` est en gé
10321032

10331033
### Joindre des données
10341034

1035-
10361035
Il est commun de devoir combiner des données issues de sources différentes.
10371036
Nous allons ici nous focaliser sur le cas le plus favorable qui est la situation
10381037
où une information permet d'apparier de manière exacte deux bases de données (autrement nous

0 commit comments

Comments
 (0)