Skip to content

Commit

Permalink
Allègement des actions github (#437)
Browse files Browse the repository at this point in the history
* update workdlow

* footnote

* update

* update

* test script

* quarto version

* test tout

* latest
  • Loading branch information
linogaliana committed Oct 18, 2023
1 parent 3276558 commit cef6a0d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/netlify-test.yaml
Expand Up @@ -12,19 +12,16 @@ jobs:
runs-on: ubuntu-latest
container: linogaliana/python-datascientist:latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: Configure safe.directory # Workaround for actions/checkout#760
run: git config --global --add safe.directory /__w/python-datascientist/python-datascientist
- shell: bash
run: |
conda info
conda list
- name: Render website
run: |
quarto --version
git diff --name-only origin/master origin/${GITHUB_HEAD_REF} >> diff
python build/tweak_render.py
cat _quarto.yml
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/prod.yml
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- main
- master
- light

jobs:
pages:
Expand All @@ -20,19 +21,12 @@ jobs:
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: Configure safe.directory # Workaround for actions/checkout#760
run: git config --global --add safe.directory /__w/python-datascientist/python-datascientist
- shell: bash
run: |
conda info
conda list
- name: Render website
run: |
quarto render --to html
- name: Publish to Pages
if: github.ref == 'refs/heads/master'
run: |
git config --global user.email quarto-github-actions-publish@example.com
git config --global user.name "Quarto GHA Workflow Runner"
quarto publish gh-pages . --no-render --no-browser
- uses: actions/upload-artifact@v2
with:
name: Website
path: public/
3 changes: 1 addition & 2 deletions content/manipulation/02a_pandas_tutorial.qmd
Expand Up @@ -401,7 +401,7 @@ Avec `astype`, on peut gérer les erreurs de conversion avec le paramètre `erro
:::

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

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

### Joindre des données


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

0 comments on commit cef6a0d

Please sign in to comment.