-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (48 loc) · 1.36 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: autotests
on: [push, pull_request]
jobs:
git-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: dependencies
run: |
python -m ensurepip
python -m pip install -U uv
python -m uv venv
python -m uv pip install -r pyproject.toml --extra=tests --python=.venv/bin/python
- name: tests
run: tg_session=${{ secrets.git_linux }} big_tests=true .venv/bin/python reposter
git-win:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: set up python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: dependencies
run: |
python -m ensurepip
python -m pip install -U uv
python -m uv venv
python -m uv pip install -r pyproject.toml --extra=tests --python=.venv/scripts/python.exe
- name: tests
run: |
$env:tg_session = '${{ secrets.git_win }}'
$env:big_tests = 'true'
.venv/scripts/python reposter
bat-pypi-win:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: tests
run: |
$env:tg_session = '${{ secrets.bat_pypi_win }}'
$env:big_tests = 'true'
cd other/launcher
cmd /c reposter.bat