Skip to content

Commit

Permalink
Merge pull request #3 from LiaoU3/update_test_market_time_yaml
Browse files Browse the repository at this point in the history
Leave a comment after a PR been created
  • Loading branch information
LiaoU3 authored Apr 5, 2024
2 parents ae8c9e4 + 589117a commit b7eb756
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/test_market_time.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,21 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt # 如果有必要的話,根據您的專案設置來安裝相關的依賴
pip install -r requirements.txt
- name: Run tests
run: |
python -m unittest tests/test_market_time.py
- name: Add test results to PR
if: github.event_name == 'pull_request'
uses: actions/github-script@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const results = `Test results:\n${process.env.unittests}`;
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: results
})

0 comments on commit b7eb756

Please sign in to comment.