Skip to content
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

ci: add circleci config #1

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
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
  •  
  •  
  •  
38 changes: 38 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
version: 2.1

orbs:
python: circleci/[email protected]

jobs:
publish-python-package:
executor: python/default
docker:
- image: cimg/python:3.8.12
working_directory: ~/repo
steps:
- checkout
- run:
name: Set Package Version
command: |
if [ "$CIRCLE_BRANCH" != "master" ]; then
export PACKAGE_VERSION=0.1.${CIRCLE_BUILD_NUM}b0
else
export PACKAGE_VERSION=0.1.${CIRCLE_BUILD_NUM}
fi
poetry version $PACKAGE_VERSION
poetry version -s
- run:
name: Configure Poetry to Point to Nexus Repo
command: |
poetry config repositories.whoop-nexus https://nexus.qa.whoop.com/repository/pypi-internal/
- run:
name: Publish Package to Nexus
command: |
poetry publish --build -r whoop-nexus -u $NEXUS_RM_USERNAME -p $NEXUS_RM_PASSWORD

workflows:
version: 2
build_and_test:
jobs:
- publish-python-package:
context: environment-variables
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

91 changes: 0 additions & 91 deletions .github/ISSUE_TEMPLATE/bug-v1.yml

This file was deleted.

60 changes: 0 additions & 60 deletions .github/ISSUE_TEMPLATE/bug-v2.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

55 changes: 0 additions & 55 deletions .github/ISSUE_TEMPLATE/feature_request.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

24 changes: 0 additions & 24 deletions .github/actions/people/action.yml

This file was deleted.

Loading