Skip to content

Commit

Permalink
add deploy workflow, cleanup lots of things from issue #33, issue #32,…
Browse files Browse the repository at this point in the history
… issue #31 and #30.
  • Loading branch information
jkitchin committed Jun 10, 2023
1 parent 9c61285 commit b6a3eee
Show file tree
Hide file tree
Showing 31 changed files with 21,895 additions and 895 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: deploy

on:
# Trigger the workflow on push to master branch
push:
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.txt
# Build the book
- name: Build the book
run: |
jupyter-book build ./pycse-jb/pycse___python_computations_in_science_and_engineering
# 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: ./pycse-j/pycse___python_computations_in_science_and_engineering/_build/html
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ pycse/tests/*.org
pycse/tests/reports
/_minted-pycse/001C347C4DCA2E5FD25C680B2569624C64CB4A97211E59E7AA80A4CDCF714D08.pygtex
.DS_Store
_build
_build
.ipynb_checkpoints
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"id": "8a97883e",
"metadata": {},
"source": [
"## Basic python usage\n",
"# Basic python usage\n",
"\n"
]
},
Expand All @@ -14,7 +14,7 @@
"id": "6034b92b",
"metadata": {},
"source": [
"### Basic math\n",
"## Basic math\n",
"\n"
]
},
Expand Down Expand Up @@ -179,7 +179,7 @@
"id": "cef9f64c",
"metadata": {},
"source": [
"### Advanced mathematical operators\n",
"## Advanced mathematical operators\n",
"\n"
]
},
Expand Down Expand Up @@ -216,7 +216,7 @@
"id": "306ffe83",
"metadata": {},
"source": [
"#### Exponential and logarithmic functions\n",
"### Exponential and logarithmic functions\n",
"\n"
]
},
Expand Down Expand Up @@ -292,7 +292,7 @@
"id": "2463bed2",
"metadata": {},
"source": [
"### Creating your own functions\n",
"## Creating your own functions\n",
"\n"
]
},
Expand Down Expand Up @@ -370,7 +370,7 @@
"id": "9e3b7fe6",
"metadata": {},
"source": [
"### Defining functions in python\n",
"## Defining functions in python\n",
"\n"
]
},
Expand Down Expand Up @@ -633,7 +633,7 @@
"id": "e7f8e341",
"metadata": {},
"source": [
"### Advanced function creation\n",
"## Advanced function creation\n",
"\n"
]
},
Expand Down Expand Up @@ -921,7 +921,7 @@
"id": "0aa8e63a",
"metadata": {},
"source": [
"### Lambda Lambda Lambda\n",
"## Lambda Lambda Lambda\n",
"\n"
]
},
Expand Down Expand Up @@ -1125,7 +1125,7 @@
"id": "fb537e76",
"metadata": {},
"source": [
"#### Applications of lambda functions\n",
"### Applications of lambda functions\n",
"\n"
]
},
Expand Down Expand Up @@ -1271,7 +1271,7 @@
"id": "ac86d426",
"metadata": {},
"source": [
"#### Summary\n",
"### Summary\n",
"\n"
]
},
Expand All @@ -1289,7 +1289,7 @@
"id": "171742df",
"metadata": {},
"source": [
"### Creating arrays in python\n",
"## Creating arrays in python\n",
"\n"
]
},
Expand Down Expand Up @@ -1582,7 +1582,7 @@
"id": "350c78dd",
"metadata": {},
"source": [
"### Functions on arrays of values\n",
"## Functions on arrays of values\n",
"\n"
]
},
Expand Down Expand Up @@ -1737,7 +1737,7 @@
"id": "df1a4c24",
"metadata": {},
"source": [
"### Some basic data structures in python\n",
"## Some basic data structures in python\n",
"\n"
]
},
Expand All @@ -1757,7 +1757,7 @@
"id": "e8cf62db",
"metadata": {},
"source": [
"#### the list\n",
"### the list\n",
"\n"
]
},
Expand Down Expand Up @@ -1835,7 +1835,7 @@
"id": "38938005",
"metadata": {},
"source": [
"#### tuples\n",
"### tuples\n",
"\n"
]
},
Expand Down Expand Up @@ -1884,7 +1884,7 @@
"id": "9b3e7ca3",
"metadata": {},
"source": [
"#### struct\n",
"### struct\n",
"\n"
]
},
Expand Down Expand Up @@ -1931,7 +1931,7 @@
"id": "6a2aa349",
"metadata": {},
"source": [
"#### dictionaries\n",
"### dictionaries\n",
"\n"
]
},
Expand Down Expand Up @@ -2006,7 +2006,7 @@
"id": "65544900",
"metadata": {},
"source": [
"#### Summary\n",
"### Summary\n",
"\n"
]
},
Expand All @@ -2024,7 +2024,7 @@
"id": "010494ea",
"metadata": {},
"source": [
"### Indexing vectors and arrays in Python\n",
"## Indexing vectors and arrays in Python\n",
"\n"
]
},
Expand Down Expand Up @@ -2168,7 +2168,7 @@
"id": "a2cb2002",
"metadata": {},
"source": [
"#### 2d arrays\n",
"### 2d arrays\n",
"\n"
]
},
Expand Down Expand Up @@ -2219,7 +2219,7 @@
"id": "eaeea825",
"metadata": {},
"source": [
"#### Using indexing to assign values to rows and columns\n",
"### Using indexing to assign values to rows and columns\n",
"\n"
]
},
Expand Down Expand Up @@ -2294,7 +2294,7 @@
"id": "6fd4d7c1",
"metadata": {},
"source": [
"#### 3D arrays\n",
"### 3D arrays\n",
"\n"
]
},
Expand Down Expand Up @@ -2365,7 +2365,7 @@
"id": "c65dca9c",
"metadata": {},
"source": [
"#### Summary\n",
"### Summary\n",
"\n"
]
},
Expand All @@ -2383,7 +2383,7 @@
"id": "291dfb27",
"metadata": {},
"source": [
"### Controlling the format of printed variables\n",
"## Controlling the format of printed variables\n",
"\n"
]
},
Expand Down Expand Up @@ -2685,7 +2685,7 @@
"id": "0bf47cab",
"metadata": {},
"source": [
"### Advanced string formatting\n",
"## Advanced string formatting\n",
"\n"
]
},
Expand Down Expand Up @@ -2915,7 +2915,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.11"
"version": "3.9.12"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit b6a3eee

Please sign in to comment.