Skip to content

Commit c0ca950

Browse files
committed
Release 0.0.1
0 parents  commit c0ca950

File tree

218 files changed

+27165
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+27165
-0
lines changed

.fernignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Specify files that shouldn't be modified by Fern

.github/workflows/ci.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: ci
2+
3+
on: [push]
4+
jobs:
5+
compile:
6+
runs-on: ubuntu-20.04
7+
steps:
8+
- name: Checkout repo
9+
uses: actions/checkout@v3
10+
- name: Set up python
11+
uses: actions/setup-python@v4
12+
with:
13+
python-version: 3.8
14+
- name: Bootstrap poetry
15+
run: |
16+
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
17+
- name: Install dependencies
18+
run: poetry install
19+
- name: Compile
20+
run: poetry run mypy .
21+
test:
22+
runs-on: ubuntu-20.04
23+
steps:
24+
- name: Checkout repo
25+
uses: actions/checkout@v3
26+
- name: Set up python
27+
uses: actions/setup-python@v4
28+
with:
29+
python-version: 3.8
30+
- name: Bootstrap poetry
31+
run: |
32+
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
33+
- name: Install dependencies
34+
run: poetry install
35+
36+
- name: Install Fern
37+
run: npm install -g fern-api
38+
- name: Test
39+
run: fern test --command "poetry run pytest -rP ."
40+
41+
publish:
42+
needs: [compile, test]
43+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
44+
runs-on: ubuntu-20.04
45+
steps:
46+
- name: Checkout repo
47+
uses: actions/checkout@v3
48+
- name: Set up python
49+
uses: actions/setup-python@v4
50+
with:
51+
python-version: 3.8
52+
- name: Bootstrap poetry
53+
run: |
54+
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
55+
- name: Install dependencies
56+
run: poetry install
57+
- name: Publish to pypi
58+
run: |
59+
poetry config repositories.remote https://upload.pypi.org/legacy/
60+
poetry --no-interaction -v publish --build --repository remote --username "$PYPI_USERNAME" --password "$PYPI_PASSWORD"
61+
env:
62+
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
63+
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
dist/
2+
.mypy_cache/
3+
__pycache__/
4+
poetry.toml

0 commit comments

Comments
 (0)