-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Testing our circleci and added some github actions
- Loading branch information
1 parent
554d651
commit bbc384d
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# See: https://circleci.com/docs/configuration-reference | ||
version: 2.1 | ||
|
||
# Define a job to be invoked later in a workflow. | ||
# See: https://circleci.com/docs/jobs-steps/#jobs-overview & https://circleci.com/docs/configuration-reference/#jobs | ||
jobs: | ||
list-models: | ||
docker: | ||
- image: cimg/python:3.12.2 | ||
steps: | ||
- checkout | ||
- run: | ||
name: "List OpenAI Models" | ||
command: | | ||
DEFAULT_OPENAI_BASE_URL="https://api.openai.com/v1" | ||
curl "${OPENAI_BASE_URL:-$DEFAULT_OPENAI_BASE_URL}/models" \ | ||
-H "Authorization: Bearer ${OPENAI_API_KEY}" \ | ||
-H "OpenAI-Organization: ${OPENAI_ORGANIZATION}" | ||
# Orchestrate jobs using workflows | ||
# See Docs: | ||
# - https://circleci.com/docs/workflows/ | ||
# - https://circleci.com/docs/configuration-reference/#workflows | ||
workflows: | ||
open-ai-workflow: | ||
jobs: | ||
- list-models: | ||
# The context where your OPENAI_* variables are defined. | ||
# See: | ||
# - Docs: https://circleci.com/docs/contexts/ | ||
# - Context: https://app.circleci.com/settings/organization/circleci/66XvZMC4HzRcCq7CxLNf8m/contexts/f3174da3-2beb-4691-9c10-668409f3b081 | ||
context: | ||
- ai-tour-operator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: 'build-test' | ||
on: # rebuild any PRs and main branch changes | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- 'releases/*' | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run plugin check | ||
uses: wordpress/plugin-check-action@v1 | ||
with: | ||
build-dir: './my-awesome-plugin' | ||
exclude-directories: 'prefixed_vendor_dir,another_dir_to_ignore' | ||
categories: | | ||
performance | ||
accessibility | ||
plugin_readme |
Empty file.