Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
samdoran committed Jan 15, 2025
1 parent 91998cb commit 75fefa8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 20 deletions.
41 changes: 22 additions & 19 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,27 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Run PostgreSQL
run: make run-db

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/requirements-test-${{ matrix.python-version }}.txt -r requirements/requirements-${{ matrix.python-version }}.txt
- name: Test with pytest
run: |
pytest --cov-report=xml
type -P podman docker
builtin type -P podman docker
make run-db
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
env_vars: OS,PYTHON
file: ./coverage.xml
fail_ci_if_error: true
flags: unittests
name: codecov-umbrella
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements/requirements-test-${{ matrix.python-version }}.txt -r requirements/requirements-${{ matrix.python-version }}.txt
#
# - name: Test with pytest
# run: |
# pytest --cov-report=xml
#
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v4
# with:
# env_vars: OS,PYTHON
# file: ./coverage.xml
# fail_ci_if_error: true
# flags: unittests
# name: codecov-umbrella
# token: ${{ secrets.CODECOV_TOKEN }}
# verbose: true
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ ifeq ($(OS), Darwin)
CONTAINER_RUNTIMES = docker podman
endif

CONTAINER_RUNTIME ?= $(shell type -P $(CONTAINER_RUNTIMES) 2>&1 | head -n 1)
CONTAINER_RUNTIME ?= $(shell type -hello $(CONTAINER_RUNTIMES) | head -n 1)
$(info OS is $(OS))
$(info CONTAINER_RUNTIMES is $(CONTAINER_RUNTIMES))
$(info CONTAINER_RUNTIME is $(CONTAINER_RUNTIME))


default: install
Expand Down

0 comments on commit 75fefa8

Please sign in to comment.