Skip to content

Commit

Permalink
CircleCI config
Browse files Browse the repository at this point in the history
Testing our circleci and added some github actions
  • Loading branch information
ashleyshaw committed Oct 9, 2024
1 parent 554d651 commit bbc384d
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .circleci/config.yml
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
24 changes: 24 additions & 0 deletions .github/workflows/build-test.yml
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.

0 comments on commit bbc384d

Please sign in to comment.