Skip to content

Commit f5cf56c

Browse files
committed
fix: Updated the pipeline to avoid the deprecated folder names
1 parent ed6f08a commit f5cf56c

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,10 @@ jobs:
5050
5151
- name: Run MyPy type checking
5252
run: |
53-
mypy src/linear-cli
53+
mypy src/linear_cli
5454
5555
- name: Check imports with isort
5656
run: |
57-
pip install isort
5857
isort --check-only --diff src/ tests/
5958
6059
test:
@@ -89,7 +88,7 @@ jobs:
8988
9089
- name: Run unit tests
9190
run: |
92-
pytest tests/unit/ -v --tb=short --cov=src/linear-cli --cov-report=xml --cov-report=term-missing
91+
pytest tests/unit/ -v --tb=short --cov=src/linear_cli --cov-report=xml --cov-report=term-missing
9392
9493
- name: Run integration tests
9594
run: |
@@ -118,12 +117,11 @@ jobs:
118117
run: |
119118
python -m pip install --upgrade pip
120119
pip install -e .[dev]
121-
pip install bandit safety
122120
123121
- name: Run Bandit security scan
124122
run: |
125-
bandit -r src/linear-cli/ -f json -o bandit-report.json || true
126-
bandit -r src/linear-cli/
123+
bandit -r src/linear_cli/ -f json -o bandit-report.json || true
124+
bandit -r src/linear_cli/
127125
128126
- name: Run Safety vulnerability scan
129127
run: |
@@ -251,15 +249,15 @@ jobs:
251249
- name: Test wheel installation
252250
run: |
253251
pip install dist/*.whl
254-
linear-cli --version
255-
linear-cli --help
252+
linear --version
253+
linear --help
256254
257255
- name: Test source installation
258256
run: |
259257
pip uninstall -y linear-cli
260258
pip install dist/*.tar.gz
261-
linear-cli --version
262-
linear-cli --help
259+
linear --version
260+
linear --help
263261
264262
performance:
265263
name: Performance Benchmarks
@@ -277,7 +275,6 @@ jobs:
277275
run: |
278276
python -m pip install --upgrade pip
279277
pip install -e .[test]
280-
pip install pytest-benchmark
281278
282279
- name: Run performance tests
283280
run: |

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,13 @@ dev = [
6767
"black>=23.0.0",
6868
"ruff>=0.0.280",
6969
"mypy>=1.5.0",
70+
"types-requests>=2.31.0",
7071
"pre-commit>=3.3.0",
7172
"responses>=0.23.0",
7273
"aioresponses>=0.7.4",
74+
"isort>=5.12.0",
75+
"bandit>=1.7.5",
76+
"safety>=2.0.0",
7377
]
7478

7579
docs = [
@@ -84,6 +88,7 @@ test = [
8488
"pytest-cov>=4.1.0",
8589
"pytest-asyncio>=0.21.0",
8690
"pytest-mock>=3.11.0",
91+
"pytest-benchmark>=4.0.0",
8792
"responses>=0.23.0",
8893
"aioresponses>=0.7.4",
8994
]

0 commit comments

Comments
 (0)