File tree Expand file tree Collapse file tree 5 files changed +39
-1
lines changed Expand file tree Collapse file tree 5 files changed +39
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Leetcode Daily Bot CI
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - " main"
8+
9+
10+ jobs :
11+ build :
12+
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - uses : actions/checkout@v4
17+ - name : Set up Python
18+ # This is the version of the action for setting up Python, not the Python version.
19+ uses : actions/setup-python@v5
20+ with :
21+ # Semantic version range syntax or exact version of a Python version
22+ python-version : ' 3.12'
23+ - name : Install dependencies
24+ run : |
25+ python -m pip install --upgrade pip
26+ pip install -r requirements.txt
27+ - name : Test
28+ run : |
29+ pip install pytest
30+ pytest tests
Original file line number Diff line number Diff line change 1+ [pytest]
2+ pythonpath = .
Original file line number Diff line number Diff line change 33jinja2
44pymongo
55python-dotenv
6+ requests
7+ pydantic
Original file line number Diff line number Diff line change 1- __init__ .py
Original file line number Diff line number Diff line change 1+ from src .common import submission_link
2+
3+
4+ def test_submission_link ():
5+ assert submission_link (123 ) == 'https://leetcode.com/submissions/detail/123'
You can’t perform that action at this time.
0 commit comments