Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |