Skip to content

Lock OpenAI version until upgrade #91

Lock OpenAI version until upgrade

Lock OpenAI version until upgrade #91

Workflow file for this run

name: Test Docker Image
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build Docker image
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: false
tags: my-docker-image:test
load: true
- name: Test Docker image
run: |
echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}" > .env
docker run --rm -i --env-file .env -v $(pwd):/repo my-docker-image:test docstring_auditor/main.py