Skip to content

Commit 71bb8e2

Browse files
committed
Update GitHub Actions
1 parent d4f7fe0 commit 71bb8e2

File tree

6 files changed

+61
-237
lines changed

6 files changed

+61
-237
lines changed

.github/workflows/development.yaml

Lines changed: 0 additions & 177 deletions
This file was deleted.

.github/workflows/release.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release
2+
on:
3+
workflow_dispatch:
4+
jobs:
5+
make_github_release:
6+
uses: datajoint/.github/.github/workflows/make_github_release.yaml@main
7+
pypi_release:
8+
needs: make_github_release
9+
uses: datajoint/.github/.github/workflows/pypi_release.yaml@main
10+
secrets:
11+
TWINE_USERNAME: ${{secrets.TWINE_USERNAME}}
12+
TWINE_PASSWORD: ${{secrets.TWINE_PASSWORD}}
13+
with:
14+
UPLOAD_URL: ${{needs.make_github_release.outputs.release_upload_url}}
15+
mkdocs_release:
16+
uses: datajoint/.github/.github/workflows/mkdocs_release.yaml@main
17+
permissions:
18+
contents: write
19+
devcontainer-build:
20+
uses: datajoint/.github/.github/workflows/devcontainer-build.yaml@main
21+
devcontainer-publish:
22+
needs:
23+
- devcontainer-build
24+
uses: datajoint/.github/.github/workflows/devcontainer-publish.yaml@main
25+
secrets:
26+
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
27+
DOCKERHUB_TOKEN: ${{secrets.DOCKERHUB_TOKEN_FOR_ELEMENTS}}

.github/workflows/test.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Test
2+
on:
3+
push:
4+
pull_request:
5+
workflow_dispatch:
6+
jobs:
7+
devcontainer-build:
8+
uses: datajoint/.github/.github/workflows/devcontainer-build.yaml@main
9+
tests:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
py_ver: ["3.9", "3.10"]
14+
mysql_ver: ["8.0", "5.7"]
15+
include:
16+
- py_ver: "3.8"
17+
mysql_ver: "5.7"
18+
- py_ver: "3.7"
19+
mysql_ver: "5.7"
20+
steps:
21+
- uses: actions/checkout@v3
22+
- name: Set up Python ${{matrix.py_ver}}
23+
uses: actions/setup-python@v4
24+
with:
25+
python-version: ${{matrix.py_ver}}
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install flake8 "black[jupyter]"
30+
- name: Run style tests
31+
run: |
32+
python_version=${{matrix.py_ver}}
33+
black element_array_ephys --check --verbose --target-version py${python_version//.}
34+

.github/workflows/u24_element_before_release.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/u24_element_release_call.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/u24_element_tag_to_release.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)