Skip to content

Commit 99c8e34

Browse files
committed
fix(CI): remove dbc extra installation from CI on windows
1 parent b0b4876 commit 99c8e34

3 files changed

Lines changed: 16 additions & 4 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on: [push, pull_request]
55
jobs:
66
tests:
77
runs-on: ${{ matrix.os }}
8-
timeout-minutes: 15
8+
timeout-minutes: ${{ (matrix.os == 'windows-latest' && 30) || 15 }}
99

1010
defaults:
1111
run:
@@ -36,9 +36,13 @@ jobs:
3636
run: |
3737
pip install poetry poetry-plugin-export
3838
poetry config virtualenvs.create false
39-
poetry export --with dev --extras dbc --format requirements.txt --output reqs.txt --without-hashes
40-
pip install -r reqs.txt
41-
pip install -e ".[dbc]"
39+
if [ "${{ runner.os }}" = "Linux" ]; then
40+
poetry install --without dev --extras dbc
41+
pip install pre-commit
42+
else
43+
poetry install --without dev
44+
fi
45+
pip install pytest pytest-timeout pytest-retry pytest-asyncio pytest-cov
4246
4347
- name: Linting
4448
if: matrix.os == 'ubuntu-latest'

.github/workflows/release.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,11 @@ jobs:
8484
make html
8585
8686
- name: Configure GitHub Pages
87+
if: github.ref == 'refs/heads/main'
8788
uses: actions/configure-pages@v5
8889

8990
- name: Upload artifact
91+
if: github.ref == 'refs/heads/main'
9092
uses: actions/upload-pages-artifact@v3
9193
with:
9294
path: docs/build/html

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ testpaths = [
102102

103103
exclude = ["*.git", "docs/"]
104104

105+
[tool.coverage.run]
106+
omit = [
107+
"pysus/management/client.py",
108+
"pysus/tui/*",
109+
]
110+
105111
[[tool.mypy.overrides]]
106112
module = "tests.*"
107113
disallow_untyped_defs = false

0 commit comments

Comments
 (0)