Skip to content

Commit 9a633ec

Browse files
First workflow (tests) (funpayhub#20)
Co-authored-by: PythonPapochka <187691553+PythonPapochka@users.noreply.github.com>
1 parent eabc0d1 commit 9a633ec

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/test.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: MainTests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: checkout
11+
uses: actions/checkout@v3
12+
13+
- name: python install
14+
uses: actions/setup-python@v5
15+
with:
16+
python-version: '3.11'
17+
18+
- name: uv and install deps
19+
run: |
20+
pip install uv
21+
uv venv
22+
uv sync --extra test
23+
env:
24+
VIRTUAL_ENV: .venv
25+
PATH: .venv/bin:$PATH
26+
27+
- name: main runner
28+
run: |
29+
.venv/bin/python -m pytest --doctest-modules
30+
env:
31+
VIRTUAL_ENV: .venv
32+
PATH: .venv/bin:$PATH

0 commit comments

Comments
 (0)