Skip to content

Commit 74551c8

Browse files
authored
Merge pull request #7 from merge-api/v0.1.0
v0.1.0
2 parents e024d93 + 135f660 commit 74551c8

File tree

2,214 files changed

+83063
-122977
lines changed

Some content is hidden

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

2,214 files changed

+83063
-122977
lines changed

.fernignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Specify files that shouldn't be modified by Fern
2+
3+
README.md
4+
5+
# We need to configure secrets for integration tests.
6+
.github/workflows/ci.yml

.github/workflows/ci.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: ci
2+
3+
on: [push]
4+
jobs:
5+
compile:
6+
runs-on: ubuntu-latest
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.7
14+
- name: Bootstrap poetry
15+
run: |
16+
curl -sSL https://install.python-poetry.org | python - -y
17+
- name: Install dependencies
18+
run: poetry install
19+
- name: Compile
20+
run: poetry run mypy .
21+
test:
22+
runs-on: ubuntu-latest
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.7
30+
- name: Bootstrap poetry
31+
run: |
32+
curl -sSL https://install.python-poetry.org | python - -y
33+
- name: Install dependencies
34+
run: poetry install
35+
- name: Test
36+
env:
37+
TEST_MERGE_API_KEY: ${{ secrets.TEST_MERGE_API_KEY }}
38+
TEST_MERGE_ATS_ACCOUNT_ID: ${{ secrets.TEST_MERGE_ATS_ACCOUNT_ID }}
39+
TEST_MERGE_ATS_ACCOUNT_TOKEN: ${{ secrets.TEST_MERGE_ATS_ACCOUNT_TOKEN }}
40+
TEST_MERGE_HRIS_ACCOUNT_ID: ${{ secrets.TEST_MERGE_HRIS_ACCOUNT_ID }}
41+
TEST_MERGE_HRIS_ACCOUNT_TOKEN: ${{ secrets.TEST_MERGE_HRIS_ACCOUNT_TOKEN }}
42+
run: poetry run pytest .
43+
44+
publish:
45+
needs: [compile, test]
46+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
47+
runs-on: ubuntu-latest
48+
steps:
49+
- name: Checkout repo
50+
uses: actions/checkout@v3
51+
- name: Set up python
52+
uses: actions/setup-python@v4
53+
with:
54+
python-version: 3.7
55+
- name: Bootstrap poetry
56+
run: |
57+
curl -sSL https://install.python-poetry.org | python - -y
58+
- name: Install dependencies
59+
run: poetry install
60+
- name: Publish to pypi
61+
run: |
62+
poetry config repositories.remote https://upload.pypi.org/legacy/
63+
poetry --no-interaction -v publish --build --repository remote --username "$PYPI_USERNAME" --password "$PYPI_PASSWORD"
64+
env:
65+
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
66+
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

.github/workflows/publish.yml

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

.github/workflows/tests.yml

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

.gitignore

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
.vscode
2-
_dev
3-
4-
__pycache__
5-
.mypy_cache
6-
7-
dist
8-
9-
.env
1+
dist/
2+
.mypy_cache/
3+
__pycache__/
4+
poetry.toml

0 commit comments

Comments
 (0)