@@ -27,21 +27,15 @@ jobs:
2727 steps :
2828 - uses : actions/checkout@v4
2929
30- - name : Build images
31- if : matrix.os == 'ubuntu-latest'
32- run : |
33- make docker_up
34-
3530 - name : set up python ${{ matrix.python-version }}
36- uses : actions/setup-python@v4
31+ uses : actions/setup-python@v5
3732 with :
3833 python-version : ${{ matrix.python-version }}
3934
4035 - name : install dependencies
4136 run : |
42- python -m pip install --upgrade pip
43- python -m pip install -e .[test_full]
44- shell : bash
37+ python -m pip install --upgrade pip poetry
38+ python -m poetry install --with test,tutorials --all-extras --no-ansi --no-interaction
4539
4640 - name : run pytest
4741 env :
@@ -50,32 +44,22 @@ jobs:
5044 TG_API_HASH : ${{ secrets.TG_API_HASH }}
5145 TG_BOT_USERNAME : ${{ secrets.TG_BOT_USERNAME }}
5246 run : |
53- if [ "$RUNNER_OS" == "Linux" ]; then
54- source <(cat .env_file | sed 's/=/=/' | sed 's/^/export /')
55- pytest --tb=long -vv --cache-clear --no-cov --allow-skip=telegram tests/
56- else
57- pytest -m "not docker" --tb=long -vv --cache-clear --no-cov --allow-skip=telegram,docker tests/
58- fi
59- shell : bash
47+ python -m poetry run poe test_no_cov
48+
6049 test_no_deps :
6150 runs-on : " ubuntu-latest"
6251 steps :
6352 - uses : actions/checkout@v4
6453
65- - name : Build images
66- run : |
67- make docker_up
68-
6954 - name : set up python 3.8
70- uses : actions/setup-python@v4
55+ uses : actions/setup-python@v5
7156 with :
7257 python-version : 3.8
7358
7459 - name : install dependencies
7560 run : |
76- python -m pip install --upgrade pip
77- python -m pip install -e .[tests]
78- shell : bash
61+ python -m pip install --upgrade pip poetry
62+ python -m poetry install --with test --no-ansi --no-interaction
7963
8064 - name : run pytest
8165 env :
8468 TG_API_HASH : ${{ secrets.TG_API_HASH }}
8569 TG_BOT_USERNAME : ${{ secrets.TG_BOT_USERNAME }}
8670 run : |
87- source <(cat .env_file | sed 's/=/=/' | sed 's/^/export /')
88- pytest --tb=long -vv --cache-clear --no-cov --allow-skip=all tests/
89- shell : bash
71+ python -m poetry run poe test_no_deps
0 commit comments