Skip to content

Commit

Permalink
Merge pull request #35 from kabilar/master
Browse files Browse the repository at this point in the history
Update GitHub Actions
  • Loading branch information
kushalbakshi authored Jun 21, 2023
2 parents 1a3d011 + 7ff3d4c commit 2311c72
Show file tree
Hide file tree
Showing 21 changed files with 70 additions and 226 deletions.

This file was deleted.

59 changes: 0 additions & 59 deletions .github/.staging_workflows/anchored_u24_element_release_call.yaml

This file was deleted.

This file was deleted.

23 changes: 0 additions & 23 deletions .github/.staging_workflows/normalize.sh

This file was deleted.

2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: DataJoint Contribution Guideline
url: https://docs.datajoint.org/python/community/02-Contribute.html
url: https://datajoint.com/docs/community/contribute/
about: Please make sure to review the DataJoint Contribution Guidelines
2 changes: 0 additions & 2 deletions .github/make-dev.sh

This file was deleted.

2 changes: 0 additions & 2 deletions .github/make-prod.sh

This file was deleted.

2 changes: 0 additions & 2 deletions .github/make-test.sh

This file was deleted.

7 changes: 0 additions & 7 deletions .github/run-act.sh

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Release
on:
workflow_dispatch:
jobs:
make_github_release:
uses: datajoint/.github/.github/workflows/make_github_release.yaml@main
pypi_release:
needs: make_github_release
uses: datajoint/.github/.github/workflows/pypi_release.yaml@main
secrets:
TWINE_USERNAME: ${{secrets.TWINE_USERNAME}}
TWINE_PASSWORD: ${{secrets.TWINE_PASSWORD}}
with:
UPLOAD_URL: ${{needs.make_github_release.outputs.release_upload_url}}
mkdocs_release:
uses: datajoint/.github/.github/workflows/mkdocs_release.yaml@main
permissions:
contents: write
32 changes: 32 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Test
on:
push:
pull_request:
workflow_dispatch:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
py_ver: ["3.9", "3.10"]
mysql_ver: ["8.0", "5.7"]
include:
- py_ver: "3.8"
mysql_ver: "5.7"
- py_ver: "3.7"
mysql_ver: "5.7"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{matrix.py_ver}}
uses: actions/setup-python@v4
with:
python-version: ${{matrix.py_ver}}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 "black[jupyter]"
- name: Run style tests
run: |
python_version=${{matrix.py_ver}}
black element_event --check --verbose --target-version py${python_version//.}
17 changes: 0 additions & 17 deletions .github/workflows/u24_element_before_release.yaml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/u24_element_release_call.yml

This file was deleted.

14 changes: 0 additions & 14 deletions .github/workflows/u24_element_tag_to_release.yaml

This file was deleted.

7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) convention.

## [0.2.3] - 2023-06-20

+ Update - GitHub Actions workflows
+ Fix - Remove Google Analytics key
+ Add - GitHub Issue Templates

## [0.2.2] - 2023-05-11

+ Fix - `.ipynb` dark mode output for all notebooks.
Expand Down Expand Up @@ -37,6 +43,7 @@ Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and
+ Add - AlignmentEvent design to capture windows relative to an event
+ Add - Black formatting into code base

[0.2.3]: https://github.com/datajoint/element-event/releases/tag/0.2.3
[0.2.2]: https://github.com/datajoint/element-event/releases/tag/0.2.2
[0.2.1]: https://github.com/datajoint/element-event/releases/tag/0.2.1
[0.2.0]: https://github.com/datajoint/element-event/releases/tag/0.2.0
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![PyPI version](https://badge.fury.io/py/element-event.svg)](http://badge.fury.io/py/element-event)

# DataJoint Element - Experimental trials

+ `element-event` features a DataJoint pipeline design for event, trial, and block management.
Expand Down
2 changes: 2 additions & 0 deletions docs/.docker/pip_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ mkdocs-gen-files
mkdocs-literate-nav
mkdocs-exclude-search
mkdocs-markdownextradata-plugin
mkdocs-jupyter
mkdocs-section-index
3 changes: 0 additions & 3 deletions docs/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# MODE="LIVE|QA|PUSH" PACKAGE=element_event UPSTREAM_REPO=https://github.com/datajoint/element-event.git HOST_UID=$(id -u) docker compose -f docs/docker-compose.yaml up --build
#
# navigate to http://localhost/
version: "2.4"
services:
docs:
Expand All @@ -14,7 +12,6 @@ services:
- PACKAGE
- UPSTREAM_REPO
- MODE
- GOOGLE_ANALYTICS_KEY
- PATCH_VERSION
volumes:
- ../docs:/main/docs
Expand Down
19 changes: 6 additions & 13 deletions docs/mkdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,14 @@ nav:
# UPSTREAM_REPO=https://github.com/datajoint/element-{ELEMENT}.git \
# HOST_UID=$(id -u) docker compose -f docs/docker-compose.yaml up --build
# ```
# 02. Site analytics depend on a local environment variable GOOGLE_ANALYTICS_KEY
# You can find this in LastPass or declare with any string to suprress errors
# 03. The API section will pull docstrings.
# 02. The API section will pull docstrings.
# A. Follow google styleguide e.g.,
# https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html
# With typing suggestions: https://docs.python.org/3/library/typing.html
# B. To pull a specific workflow fork, change ./docs/src/api/make_pages.py#L19
# 04. To see your fork of the workflow-{element} in this render, change the
# 03. To see your fork of the workflow-{element} in this render, change the
# URL in ./docs/src/api/make_pages.py#L19 to your fork.
# 05. For redirecting options For redirect options, see 'redirects' below.
# 06. To deploy this site on your fork,
# 04. To deploy this site on your fork,
# A. declare a branch called gh-pages
# B. go to the your fork > settings > pages
# C. direct pages to render from the gh-pages branch at root
Expand Down Expand Up @@ -87,9 +84,6 @@ theme:
plugins:
- markdownextradata: {}
- search
# - redirects: # OPTIONAL REDIRECTS
# redirect_maps:
# "index.md": "getting_started.md"
- mkdocstrings:
default_handler: python
handlers:
Expand Down Expand Up @@ -126,13 +120,12 @@ markdown_extensions:
linenums: true
- pymdownx.inlinehilite
- pymdownx.snippets

- pymdownx.magiclink # Displays bare URLs as links
- pymdownx.tasklist: # Renders check boxes in tasks lists
custom_checkbox: true
extra:
PATCH_VERSION: !ENV PATCH_VERSION
generator: false # Disable watermark
analytics:
provider: google
property: !ENV GOOGLE_ANALYTICS_KEY
version:
provider: mike
social:
Expand Down
2 changes: 1 addition & 1 deletion element_event/trial.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class Attribute(dj.Part):
"""Extra Block attributes to fully describe a block
Attributes:
Block (foreign key): Block table primary key.
Block (foreign key): Block table primary key.
attribute_name ( varchar(32) ): Name of block attribute
attribute_value ( varchar(2000) ): Optional. Block attribute value
attribute_blob (longblob): Optional. Block attribute numerical numerical data
Expand Down
2 changes: 1 addition & 1 deletion element_event/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""Package metadata."""
__version__ = "0.2.2"
__version__ = "0.2.3"

0 comments on commit 2311c72

Please sign in to comment.