Skip to content

Commit 0b9c135

Browse files
committed
refactor(ci): remove unused dependencies in unit tests
1 parent 178a7b7 commit 0b9c135

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed

.github/actions/setup-dev/action.yml renamed to .github/actions/setup-poetry/action.yml

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,8 @@
1-
name: Set up development
2-
description: Install required dependencies
1+
name: Set up poetry
2+
description: Install poetry and python dependencies
33
runs:
44
using: "composite"
55
steps:
6-
- name: Install terraform
7-
uses: hashicorp/setup-terraform@v2
8-
with:
9-
terraform_wrapper: false
10-
11-
- uses: actions/cache@v3
12-
id: npm-cache
13-
with:
14-
path: ~/.npm
15-
key: ${{ runner.os }}-build-${{ env.cache-name }}
16-
17-
- name: Install npm dependencies
18-
shell: bash
19-
run: npm install -g serverless serverless-scaleway-functions
20-
216
- uses: snok/install-poetry@v1
227
with:
238
version: 1.3.2
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Set up development
2+
description: Install required dependencies
3+
runs:
4+
using: "composite"
5+
steps:
6+
- uses: actions/cache@v3
7+
id: npm-cache
8+
with:
9+
path: ~/.npm
10+
key: ${{ runner.os }}-build-${{ env.cache-name }}
11+
12+
- name: Install npm dependencies
13+
shell: bash
14+
run: npm install -g serverless serverless-scaleway-functions

.github/workflows/pytest-integration.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ jobs:
1515
container: nikolaik/python-nodejs:python3.10-nodejs18
1616
steps:
1717
- uses: actions/checkout@v3
18-
- uses: ./.github/actions/setup-dev
18+
- name: Install terraform
19+
uses: hashicorp/setup-terraform@v2
20+
with:
21+
terraform_wrapper: false
22+
- uses: ./.github/actions/setup-serverless-framework
23+
- uses: ./.github/actions/setup-poetry
1924
- name: Test with pytest
2025
working-directory: tests
2126
run: poetry run pytest integrations -n $(nproc --all)

.github/workflows/pytest.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@ jobs:
1515
container: nikolaik/python-nodejs:python3.10-nodejs18
1616
steps:
1717
- uses: actions/checkout@v3
18-
- uses: ./.github/actions/setup-dev
18+
- uses: ./.github/actions/setup-poetry
1919
- name: Test with pytest
2020
working-directory: tests
2121
run: poetry run pytest -s --ignore=integrations
22-
env:
23-
SCW_DEFAULT_ORGANIZATION_ID: ${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }}
24-
SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }}
25-
SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }}

0 commit comments

Comments
 (0)