Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
FROM python:3.13-alpine

# Update pip and install dependencies and tools
RUN pip install --upgrade pip \
&& apk update && \
RUN pip install --upgrade pip && \
pip install pipenv && \
apk update && \
apk add --no-cache \
make \
git
12 changes: 8 additions & 4 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ jobs:
python-version: "3.13"

- name: Install dependencies
run: pip install -r tests/requirements.txt
run: |
pip install pipenv
pipenv install --dev

- name: Test
run: pytest -v --cov=./switcher_client --cov-report xml
run: pipenv run pytest -v --cov=./switcher_client --cov-report xml

- name: SonarCloud Scan
uses: sonarsource/sonarqube-scan-action@v5.2.0
Expand Down Expand Up @@ -55,7 +57,9 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: pip install -r tests/requirements.txt
run: |
pip install pipenv
pipenv install --dev

- name: Test
run: pytest -v
run: pipenv run pytest -v
6 changes: 4 additions & 2 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
python-version: ${{ github.event.inputs.python }}

- name: Install dependencies
run: pip install -r tests/requirements.txt
run: |
pip install pipenv
pipenv install --dev

- name: Test
run: pytest -v
run: pipenv run pytest -v
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
.PHONY: install install-test test cover build
.PHONY: install test cover build

install:
pip install -r requirements.txt

install-test:
pip install -r tests/requirements.txt
pipenv install --dev

test:
pytest -v --cov=./switcher_client --cov-report xml
Expand Down
12 changes: 12 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
requests = "==2.32.3"

[dev-packages]
pytest = "==8.4.0"
pytest-cov = "==6.1.1"
responses = "==0.25.7"
484 changes: 484 additions & 0 deletions Pipfile.lock

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

3 changes: 0 additions & 3 deletions tests/requirements.txt

This file was deleted.