Skip to content

Commit

Permalink
Github workflows and test
Browse files Browse the repository at this point in the history
  • Loading branch information
oscgonfer committed Jul 19, 2024
1 parent 025c1a2 commit f7df3df
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
35 changes: 35 additions & 0 deletions smartcitizen-data-books/.github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy to Github Pages

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: '3.8'
architecture: 'x64'

- name: Install dependencies
run: |
pip install -r requirements-deploy.txt
- name: Build the book
run: |
pip freeze
pip --version
python --version
jupyter-book build .
- name: Deploy
if: github.ref == 'refs/heads/main'
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html
43 changes: 43 additions & 0 deletions smartcitizen-data-books/analysis/test.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"id": "b011cb00-5cd0-420e-a87c-047257db7906",
"metadata": {},
"outputs": [],
"source": [
"import scdata as sc"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "f0ef2104-6708-4720-9acf-6b1897c761e3",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.7"
}
},
"nbformat": 4,
"nbformat_minor": 5
}

0 comments on commit f7df3df

Please sign in to comment.