Skip to content

v0.1.0 #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .fernignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Specify files that shouldn't be modified by Fern

README.md

# We need to configure secrets for integration tests.
.github/workflows/ci.yml
66 changes: 66 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: ci

on: [push]
jobs:
compile:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Bootstrap poetry
run: |
curl -sSL https://install.python-poetry.org | python - -y
- name: Install dependencies
run: poetry install
- name: Compile
run: poetry run mypy .
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Bootstrap poetry
run: |
curl -sSL https://install.python-poetry.org | python - -y
- name: Install dependencies
run: poetry install
- name: Test
env:
TEST_MERGE_API_KEY: ${{ secrets.TEST_MERGE_API_KEY }}
TEST_MERGE_ATS_ACCOUNT_ID: ${{ secrets.TEST_MERGE_ATS_ACCOUNT_ID }}
TEST_MERGE_ATS_ACCOUNT_TOKEN: ${{ secrets.TEST_MERGE_ATS_ACCOUNT_TOKEN }}
TEST_MERGE_HRIS_ACCOUNT_ID: ${{ secrets.TEST_MERGE_HRIS_ACCOUNT_ID }}
TEST_MERGE_HRIS_ACCOUNT_TOKEN: ${{ secrets.TEST_MERGE_HRIS_ACCOUNT_TOKEN }}
run: poetry run pytest .

publish:
needs: [compile, test]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to be clear, this if will cause this to only run when we tag a commit in github?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is that a problem?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No I just wanted to make sure I understood what this was.

runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Bootstrap poetry
run: |
curl -sSL https://install.python-poetry.org | python - -y
- name: Install dependencies
run: poetry install
- name: Publish to pypi
run: |
poetry config repositories.remote https://upload.pypi.org/legacy/
poetry --no-interaction -v publish --build --repository remote --username "$PYPI_USERNAME" --password "$PYPI_PASSWORD"
env:
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
24 changes: 0 additions & 24 deletions .github/workflows/publish.yml

This file was deleted.

50 changes: 0 additions & 50 deletions .github/workflows/tests.yml

This file was deleted.

13 changes: 4 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
.vscode
_dev

__pycache__
.mypy_cache

dist

.env
dist/
.mypy_cache/
__pycache__/
poetry.toml
Loading