Merge pull request #62 from futaringoto/feat/#61_template_PR #10
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
name: CI | |
on: push | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repositry | |
uses: actions/checkout@v4 | |
- name: Create .env file | |
run: | | |
touch .env | |
echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}" >> .env | |
echo "VOICEVOX_API_KEY=${{ secrets.VOICEVOX_API_KEY }}" >> .env | |
- name: Run docker-compose Build | |
run: docker compose -f docker-compose.yml -f docker-compose.dev.yml up --build -d | |
- name: Run test | |
run: docker compose run --entrypoint "poetry run pytest" api |