Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
rkansal47 committed Jan 5, 2024
2 parents fa935ac + b2fbec1 commit 153091f
Show file tree
Hide file tree
Showing 51 changed files with 11,241 additions and 2,730 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Pre-commit updates auto-merge
on: pull_request

permissions:
contents: write
pull-requests: write

jobs:
dependabot:
runs-on: ubuntu-latest
if:
${{ github.event_name == 'pull_request' &&
github.event.pull_request.user.login == 'pre-commit-ci[bot]'}}
steps:
- name: Auto-merge PR
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
40 changes: 40 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: deploy

on:
# Trigger the workflow on push to main branch
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

# This job installs dependencies, build the book, and pushes it to `gh-pages`
jobs:
build-and-deploy-book:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.8]
steps:
- uses: actions/checkout@v2

# Install dependencies
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -r requirements-dev.txt
# Build the book
- name: Build the book
run: |
jupyter-book build machine-learning-hats
# Deploy the book's HTML to gh-pages branch
- name: GitHub Pages action
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: machine-learning-hats/_build/html
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.ipynb_checkpoints
*~
*.pyc
**/.DS_Store

machine-learning-hats/_build
machine-learning-hats/notebooks/*
!machine-learning-hats/notebooks/*.ipynb
!machine-learning-hats/notebooks/*.md

1 change: 1 addition & 0 deletions .mambarc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
always_yes: true
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
repos:
- repo: https://github.com/psf/black-pre-commit-mirror
rev: "23.12.1"
hooks:
- id: black-jupyter
Loading

0 comments on commit 153091f

Please sign in to comment.