Skip to content

Commit

Permalink
Add pypi deps and fix when workflows are run
Browse files Browse the repository at this point in the history
  • Loading branch information
finsberg committed Feb 25, 2024
1 parent 4d0642a commit b6f4b28
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 16 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on: [push]
on:
pull_request:
push:
branches: [main]


# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
Expand Down Expand Up @@ -29,19 +32,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Cache
id: cache
uses: actions/cache@v3
with:
path: |
~/.cache/instant
~/.cache/dijitso
~/.cache/pip
~/_build
key: cache_v1
restore-keys: |
cache_v1
- name: Install dependencies
run: python3 -m pip install ".[docs]"

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: CI

on: [push]
on:
pull_request:
push:
branches: [main]


jobs:
build:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: PyPI

on: [push]
on:
pull_request:
push:
branches: [main]


jobs:
test:
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ dev = [
"twine",
"wheel",
]
pypi = [
"twine",
"wheel",
"build",
]
docs = [
"jupyter-book"
]
Expand Down

0 comments on commit b6f4b28

Please sign in to comment.