Skip to content

Commit 5e34a7c

Browse files
committed
add cicd
1 parent 8c79428 commit 5e34a7c

File tree

5 files changed

+79
-6
lines changed

5 files changed

+79
-6
lines changed

.github/workflows/ci.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- dev
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
python-version: [3.11]
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v2
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Install dependencies
26+
run: |
27+
# python -m pip install --upgrade pip
28+
pip install .
29+
30+
publish:
31+
if: github.ref == 'refs/heads/master' # Only runs on the master branch
32+
runs-on: ubuntu-latest
33+
needs: build
34+
35+
steps:
36+
- name: Checkout repository
37+
uses: actions/checkout@v2
38+
39+
- name: Set up Python
40+
uses: actions/setup-python@v2
41+
with:
42+
python-version: '3.x'
43+
44+
- name: Install build tools
45+
run: |
46+
python -m pip install --upgrade pip
47+
pip install build twine
48+
pip install setuptools
49+
pip install wheel
50+
51+
- name: Build package
52+
run: python setup.py sdist bdist_wheel
53+
54+
- name: Publish package to PyPI
55+
env:
56+
TWINE_USERNAME: __token__
57+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
58+
run: python -m twine upload dist/*

.idea/indexLayout.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jsLibraryMappings.xml

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

.idea/jupyter-forge.iml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/projectSettingsUpdater.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)