From d2b2f7c2cbb7aa7edd5ca1b5dade59156fba111a Mon Sep 17 00:00:00 2001 From: Remi Gau Date: Fri, 21 Feb 2025 15:42:49 +0100 Subject: [PATCH] [MAINT] add deploy workflow --- .github/workflows/deploy.yml | 26 ++++++++++++++++++++++++++ .pre-commit-config.yaml | 2 +- tmp.py | 10 ---------- 3 files changed, 27 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/deploy.yml delete mode 100644 tmp.py diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..6598fa77 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,26 @@ +--- +name: Publish docs via GitHub Pages +on: + push: + branches: + - main + +jobs: + build: + name: Deploy docs + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: 3.12 + + - name: Deploy docs + uses: mhausenblas/mkdocs-deploy-gh-pages@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CONFIG_FILE: mkdocs.yml + REQUIREMENTS: requirements.txt diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 62f86152..eba02e12 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -54,7 +54,7 @@ repos: - id: isort - repo: https://github.com/PyCQA/flake8 - rev: 7.1.1 + rev: 7.1.2 hooks: - id: flake8 args: [--config, .flake8, --verbose, tools] diff --git a/tmp.py b/tmp.py deleted file mode 100644 index 69661293..00000000 --- a/tmp.py +++ /dev/null @@ -1,10 +0,0 @@ -import pandas as pd - -participants = pd.DataFrame( - { - "participant_id": ["sub-01", "sub-02"], - "age": [20, 30], - "sex": ["m", "f"], - } -) -participants.to_csv("participants.tsv")