Skip to content

Commit 99f7b06

Browse files
authored
init ci setup (#2)
Init github ci setup incl. pushing release to pypi
1 parent 99274e1 commit 99f7b06

5 files changed

Lines changed: 428 additions & 390 deletions

File tree

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
# Maintain dependencies for GitHub Actions
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "daily"

.github/workflows/release.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
3+
on: [push, workflow_dispatch]
4+
5+
jobs:
6+
all_tests:
7+
name: "Run NB Tests"
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions/setup-python@v2
12+
- uses: abatilo/actions-poetry@v2.0.0
13+
with:
14+
poetry-version: 1.1.0
15+
- name: Install ipyannotator
16+
run: poetry install
17+
18+
- name: Read Notebooks
19+
run: poetry run nbdev_read_nbs
20+
21+
- name: Check Notebooks Clean
22+
run: ./scripts/check_clean_nb.sh
23+
24+
- name: Check Notebooks - Lib Diff
25+
run: ./scripts/check_lib_diff.sh
26+
27+
- name: Run Notebooks tests
28+
run: poetry run nbdev_test_nbs
29+
30+
31+
release_whl:
32+
needs: all_tests
33+
name: "Upload to pypi"
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v2
37+
- uses: actions/setup-python@v2
38+
- uses: abatilo/actions-poetry@v2.0.0
39+
with:
40+
poetry-version: 1.1.0
41+
- name: Upload
42+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
43+
run: poetry publish --build -r palaimon -u $POETRY_HTTP_BASIC_PYPI_USERNAME -p $POETRY_HTTP_BASIC_PYPI_PASSWORD
44+
env:
45+
POETRY_HTTP_BASIC_PYPI_USERNAME: ${{ secrets.POETRY_HTTP_BASIC_PYPI_USERNAME }}
46+
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.POETRY_HTTP_BASIC_PYPI_PASSWORD }}
47+
POETRY_REPOSITORIES_PALAIMON_URL: ${{ secrets.POETRY_REPOSITORIES_PALAIMON_URL }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ipyannotator - the infinitely hackable annotation framework
22

3-
3+
![CI-Badge](https://github.com/palaimon/ipyannotator/workflows/CI/badge.svg)
44

55

66
![jupytercon 2020](https://jupytercon.com/_nuxt/img/5035c8d.svg)

0 commit comments

Comments
 (0)