Skip to content

Commit 6ce07bc

Browse files
committed
Update GitHub Actions workflows
1 parent 3e42d19 commit 6ce07bc

13 files changed

+50
-207
lines changed

.github/.staging_workflows/anchored_u24_element_before_release.yaml

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

.github/.staging_workflows/anchored_u24_element_release_call.yaml

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

.github/.staging_workflows/anchored_u24_element_tag_to_release.yaml

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

.github/.staging_workflows/normalize.sh

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

.github/make-dev.sh

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

.github/make-prod.sh

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

.github/make-test.sh

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

.github/run-act.sh

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

.github/workflows/release.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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

.github/workflows/test.yaml

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

0 commit comments

Comments
 (0)