Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
renardeinside committed Jun 24, 2024
1 parent 31d3ec7 commit dbca8de
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 16 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/onpush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@ jobs:
with:
fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip' # caching pip dependencies
cache-dependency-path: pyproject.toml
cache: 'pip'

- name: Install pip
run: python -m pip install --upgrade pip
Expand All @@ -38,18 +37,18 @@ jobs:
- name: Lint
run: |
prospector --profile prospector.yaml
black --check .
hatch run prospector --profile prospector.yaml
hatch run black --check .
- name: Run unit tests
run: |
git config --global init.defaultBranch main # to avoid verbose deprecation messages in CI pipeline
pytest tests/unit --cov dbx -n auto
hatch run pytest tests/unit --cov dbx -n auto
- name: Run integrity tests
run: |
python -m dbx --help
python -c "from dbx._version import __version__; print(__version__)"
hatch run python -m dbx --help
hatch run python -c "from dbx._version import __version__; print(__version__)"
- name: Publish test coverage
if: startsWith(matrix.os,'ubuntu')
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/onrelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@ jobs:
with:
fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip' # caching pip dependencies
cache-dependency-path: setup.py
cache: 'pip'

- name: Install pip
run: python -m pip install --upgrade pip
Expand Down
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
SHELL=/bin/bash


##############################################################################
PYTHON_VERSION=3.8.13
##############################################################################

##############################################################################
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ exclude = '''
'''

[tool.pytest.ini_options]
addopts = "-s -p no:warnings --timeout=3600 --ignore-glob='dbx/templates/*'"
addopts = "-s -p no:warnings --timeout=3600 --ignore-glob='src/dbx/templates/*'"
log_cli = 1
log_cli_level = "INFO"
log_cli_format = "[pytest][%(asctime)s][%(levelname)s][%(module)s][%(funcName)s] %(message)s"
Expand All @@ -113,3 +113,4 @@ source = "vcs"

[tool.hatch.build.hooks.vcs]
version-file = "src/dbx/_version.py"

0 comments on commit dbca8de

Please sign in to comment.