From 592479914d7c63b4369ae3d3222d583be9b05589 Mon Sep 17 00:00:00 2001 From: Riccardo Fogliato Date: Wed, 10 Jul 2024 13:32:20 -0700 Subject: [PATCH] added workflows --- .github/.DS_Store | Bin 0 -> 6148 bytes .github/workflows/documentation.yml | 46 ++++++++++++++++++++++++++++ .github/workflows/lint.yml | 27 ++++++++++++++++ .gitignore | 7 ++++- 4 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 .github/.DS_Store create mode 100644 .github/workflows/documentation.yml create mode 100644 .github/workflows/lint.yml diff --git a/.github/.DS_Store b/.github/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..e9b919c9496fccdbb54d85f230640081d122bc38 GIT binary patch literal 6148 zcmeHK%}T>S5T0$TO(;SS3OxqA7ObsQ#Y?F51&ruHr6#0mXv~(THHT8jSzpK}@p+ut z-HN3ZJc-yDnEhtwC(C{t_6Gn&XAJV`tL z=$d*LQpUmD_Jhl)pY^KSr!pD)QPLl&f+*}`%FR`jgfi>MNfM^2*3$vYw(MTDHk~$) z8g-}DKAhE^>2VY7gI0Ssv#p)oy_56aAbv{Zi>6cHpQmKY;2d7jSTVC_ZOH z*I=#@BPc?bBI;6Mo)|)xqu()kuEAWRE(f7T#_yPsg?XU}H9Gnol@7wy$SpI#3@kEG z)ZHqb|7YL7{}+q6#|$t7|B3-o>U!M{PRX3DOOvCs)L|usI*Mzk aO3?3+f#@2{HKGTFF9M1NZkT~zW#9wyZB5z$ literal 0 HcmV?d00001 diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml new file mode 100644 index 0000000..4078bee --- /dev/null +++ b/.github/workflows/documentation.yml @@ -0,0 +1,46 @@ +name: Build the documentation + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + # Functionality for testing documentation builds on multiple OSes and Python versions + name: Build docs (${{ matrix.python-version }}, ${{ matrix.os }}) + runs-on: + group: cascade + labels: cascade_ubuntu-latest + defaults: + run: + shell: bash -l {0} + strategy: + matrix: + os: ["ubuntu-latest"] + python-version: ["3.9"] + + steps: + # Grap the latest commit from the branch + - name: Checkout the branch + uses: actions/checkout@v2.3.1 + with: + persist-credentials: false + + # Install Poetry and build the documentation + - name: Install and configure Poetry + uses: snok/install-poetry@v1 + with: + version: 1.2.2 + virtualenvs-create: true + virtualenvs-in-project: false + installer-parallel: true + + - name: Build the documentation with Sphinx + run: | + poetry install --all-extras + sudo apt install pandoc + pip install pandoc + cd docs + poetry run sphinx-build -b html source build/html \ No newline at end of file diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..1442ead --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,27 @@ +name: Python linting + +on: + pull_request: + branches: [main] + push: + branches: [main] + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python 3.9 + uses: actions/setup-python@v2 + with: + python-version: 3.9 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install black + + - name: Run Black + run: black --check --diff --verbose cascade \ No newline at end of file diff --git a/.gitignore b/.gitignore index befc72e..605f3c6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,9 @@ scripts data dist -**/__pycache__/ \ No newline at end of file +**/__pycache__/ +**/.DS_Store +.DS_Store +._.DS_Store +**/.DS_Store +**/._.DS_Store \ No newline at end of file