File tree Expand file tree Collapse file tree 3 files changed +19
-718
lines changed Expand file tree Collapse file tree 3 files changed +19
-718
lines changed Original file line number Diff line number Diff line change @@ -41,31 +41,19 @@ jobs:
41
41
uses : actions/setup-python@v5
42
42
with :
43
43
python-version : ${{ matrix.python-version }}
44
- - name : Install Poetry
45
- uses : snok/install-poetry@v1
46
- with :
47
- virtualenvs-create : true
48
- virtualenvs-in-project : true
49
- - name : Load cached venv
50
- id : cached-poetry-dependencies
51
- uses : actions/cache@v4
52
- with :
53
- path : .venv
54
- key : venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
44
+ cache : " pip"
45
+ cache-dependency-path : |
46
+ "requirements.txt"
47
+ "requirements-dev.txt"
55
48
- name : Install dependencies
56
- if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
57
- run : poetry install --no-interaction --no-root
49
+ run : pip install .[dev,tests]
58
50
- name : Run Pytest
59
51
env :
60
52
TEST_CMC_API_KEY : ${{ secrets.TEST_CMC_API_KEY }}
61
- run : |
62
- source .venv/bin/activate
63
- pytest -vv --cov=./ --cov-report=xml tests/
53
+ run : pytest -vv --cov=./ --cov-report=xml tests/
64
54
- name : Upload Coverage to Codecov
65
55
uses : codecov/codecov-action@v4
66
56
with :
67
57
token : ${{ secrets.CODECOV_TOKEN }}
68
58
- name : Run Bandit
69
- run : |
70
- source .venv/bin/activate
71
- bandit ./waybar_crypto.py
59
+ run : bandit ./waybar_crypto.py
You can’t perform that action at this time.
0 commit comments