Skip to content

Commit

Permalink
Merge pull request #43 from michalu/feature/test-action-only-req
Browse files Browse the repository at this point in the history
fix github action config
  • Loading branch information
NirDiamant authored Sep 11, 2024
2 parents 1992ee7 + da5b6b0 commit cf261b0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/github-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@ name: GitHub PR Test

on:
pull_request:
types: [opened, synchronize, reopened]
branches:
- main
paths:
- "requirements.txt"

jobs:
test:
runs-on: ubuntu-latest

env:
OPENAI_API_KEY: "123"

steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -17,6 +23,7 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3.12.6'
cache: 'pip'

- name: Install dependencies
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/local-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ jobs:
test:
container:
image: catthehacker/ubuntu:act-latest

env:
OPENAI_API_KEY: "123"

steps:
- name: Checkout code
Expand Down
6 changes: 0 additions & 6 deletions tests/test_sample.py

This file was deleted.

0 comments on commit cf261b0

Please sign in to comment.