Skip to content

Commit

Permalink
Add workflow to test market_time.py
Browse files Browse the repository at this point in the history
  • Loading branch information
LiaoU3 committed Apr 5, 2024
1 parent f404be1 commit 2a7e386
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test_market_time.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Run Tests on PR with changes to market_time.py

on:
pull_request:
paths:
- 'MarketTime/market_time.py'
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Copy MarketTime/ folder to tests/ directory
run: |
cp -r MarketTime/ tests/
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt # 如果有必要的話,根據您的專案設置來安裝相關的依賴
- name: Run tests
run: |
python -m unittest tests/test_market_time.py

0 comments on commit 2a7e386

Please sign in to comment.