Skip to content

Commit

Permalink
Refactor GitHub workflow file to include environment variable for Ope…
Browse files Browse the repository at this point in the history
…nRouter API key and update Poetry installation command to add it to PATH
  • Loading branch information
Mateusz Stawicki committed Oct 28, 2024
1 parent 2156485 commit 9365e84
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,19 @@ on:
- '.github/workflows/test.yml' # Trigger on changes to the workflow file
pull_request:
paths:
- 'src/**' # Trigger on changes in the src directory'
- 'src/**' # Trigger on changes in the src directory
- 'tests/**' # Trigger on changes in the tests directory
- '.github/workflows/test.yml' # Trigger on changes to the workflow file

workflow_dispatch: # Allows manual triggering of the workflow

jobs:
test:
runs-on: ubuntu-latest

# Set environment variables for the job
env:
OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}

steps:
# Checkout the latest code
- name: Checkout code
Expand All @@ -32,7 +35,9 @@ jobs:

# Install Poetry
- name: Install Poetry
run: curl -sSL https://install.python-poetry.org | python3 -
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "::add-path::$(python3 -m site --user-base)/bin"
# Install dependencies via Poetry
- name: Install dependencies
Expand Down

0 comments on commit 9365e84

Please sign in to comment.