Skip to content

Commit ff19ddd

Browse files
authored
fix: switch to setuptools (#92)
* switch to setuptools * cleanup bandit excludes * v1.5.4
1 parent f698f9e commit ff19ddd

File tree

3 files changed

+19
-718
lines changed

3 files changed

+19
-718
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -41,31 +41,19 @@ jobs:
4141
uses: actions/setup-python@v5
4242
with:
4343
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"
5548
- 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]
5850
- name: Run Pytest
5951
env:
6052
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/
6454
- name: Upload Coverage to Codecov
6555
uses: codecov/codecov-action@v4
6656
with:
6757
token: ${{ secrets.CODECOV_TOKEN }}
6858
- name: Run Bandit
69-
run: |
70-
source .venv/bin/activate
71-
bandit ./waybar_crypto.py
59+
run: bandit ./waybar_crypto.py

0 commit comments

Comments
 (0)