File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : python-tests
2+
3+ env :
4+ PYTHON_VERSION : " 3.12"
5+
6+ on :
7+ push :
8+ branches : [main]
9+ paths :
10+ - " socket_basics/**/*.py"
11+ - " tests/**/*.py"
12+ - " pyproject.toml"
13+ - " uv.lock"
14+ - " .github/workflows/python-tests.yml"
15+ pull_request :
16+ paths :
17+ - " socket_basics/**/*.py"
18+ - " tests/**/*.py"
19+ - " pyproject.toml"
20+ - " uv.lock"
21+ - " .github/workflows/python-tests.yml"
22+ workflow_dispatch :
23+
24+ permissions :
25+ contents : read
26+
27+ concurrency :
28+ group : python-tests-${{ github.ref }}
29+ cancel-in-progress : true
30+
31+ jobs :
32+ python-tests :
33+ runs-on : ubuntu-latest
34+ timeout-minutes : 20
35+ steps :
36+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
37+ with :
38+ fetch-depth : 1
39+ persist-credentials : false
40+ - name : 🐍 setup python
41+ uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
42+ with :
43+ python-version : ${{ env.PYTHON_VERSION }}
44+ cache : " pip"
45+ - name : 🛠️ install deps
46+ run : |
47+ python -m pip install --upgrade pip
48+ pip install -e ".[dev]"
49+ - name : 🧪 run tests
50+ run : pytest -q tests/
You can’t perform that action at this time.
0 commit comments