Skip to content

Commit

Permalink
fix: switch to setuptools (#92)
Browse files Browse the repository at this point in the history
* switch to setuptools

* cleanup bandit excludes

* v1.5.4
  • Loading branch information
chadsr authored May 31, 2024
1 parent f698f9e commit ff19ddd
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 718 deletions.
26 changes: 7 additions & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,31 +41,19 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
cache: "pip"
cache-dependency-path: |
"requirements.txt"
"requirements-dev.txt"
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
run: pip install .[dev,tests]
- name: Run Pytest
env:
TEST_CMC_API_KEY: ${{ secrets.TEST_CMC_API_KEY }}
run: |
source .venv/bin/activate
pytest -vv --cov=./ --cov-report=xml tests/
run: pytest -vv --cov=./ --cov-report=xml tests/
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Run Bandit
run: |
source .venv/bin/activate
bandit ./waybar_crypto.py
run: bandit ./waybar_crypto.py
Loading

0 comments on commit ff19ddd

Please sign in to comment.