Skip to content

Commit

Permalink
update to the test
Browse files Browse the repository at this point in the history
  • Loading branch information
karamba228 committed Sep 13, 2024
1 parent e61b87e commit f9f17d2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/annotate.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
name: Annotate Requirements with Score API

on: [push]

jobs:
annotate_requirements_job:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Display Notice with Requirements
run: |
if [ -f requirements.txt ]; then
LINE=1
while IFS= read -r package; do
echo "::notice file=requirements.txt,line=$LINE,col=1,endColumn=${#package}::Found package: $package"
LINE=$((LINE + 1))
done < requirements.txt
else
echo "::error::requirements.txt file not found"
fi
# - name: Display Notice with Requirements
# run: |
# if [ -f requirements.txt ]; then
# LINE=1
# while IFS= read -r package; do
# echo "::notice file=requirements.txt,line=$LINE,col=1,endColumn=${#package}::Found package: $package"
# LINE=$((LINE + 1))
# done < requirements.txt
# else
# echo "::error::requirements.txt file not found"
# fi

- name: Install dependencies
run: npm install axios
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
name: Test Action

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Display Notice with Requirements
run: |
if [ -f requirements.txt ]; then
LINE=1
while IFS= read -r package; do
echo "::notice file=requirements.txt,line=$LINE,col=1,endColumn=${#package}::Found package: $package"
LINE=$((LINE + 1))
done < requirements.txt
else
echo "::error::requirements.txt file not found"
fi
- name: Run local action
uses: ./.github/actions/annotate
with:
Expand Down

0 comments on commit f9f17d2

Please sign in to comment.