Skip to content

Commit 7a21436

Browse files
authored
chore(gha): Lint and Test gha not working because of missing pipenv (#48)
1 parent 04f5fd5 commit 7a21436

File tree

2 files changed

+22
-36
lines changed

2 files changed

+22
-36
lines changed

.github/workflows/lint.yml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,17 @@ jobs:
1717
with:
1818
persist-credentials: false
1919
fetch-depth: 0
20-
- name: Install dependencies
21-
# from https://github.com/VaultVulp/action-pipenv/commits/main
22-
uses: VaultVulp/action-pipenv@0e0abc7839b234802947bb8aa1a7c7b8b00a2ff4
20+
# from https://github.com/palewire/install-python-pipenv-pipfile/commits/main
21+
- name: Install Python, pipenv and Pipfile packages
22+
uses: palewire/install-python-pipenv-pipfile@fae3f6a0c5e68b98df1a416a3bf3f567db461251
2323
with:
24-
command: install -d
24+
python-version: '3.9'
2525
- name: Install library
26-
# from https://github.com/VaultVulp/action-pipenv/commits/main
27-
uses: VaultVulp/action-pipenv@0e0abc7839b234802947bb8aa1a7c7b8b00a2ff4
28-
with:
29-
command: run install_local
26+
run: |
27+
pipenv run install_local
3028
- name: Run linting
31-
# from https://github.com/VaultVulp/action-pipenv/commits/main
32-
uses: VaultVulp/action-pipenv@0e0abc7839b234802947bb8aa1a7c7b8b00a2ff4
33-
with:
34-
command: run lint
29+
run: |
30+
pipenv run lint
3531
- name: Run MyPy
36-
# from https://github.com/VaultVulp/action-pipenv/commits/main
37-
uses: VaultVulp/action-pipenv@0e0abc7839b234802947bb8aa1a7c7b8b00a2ff4
38-
with:
39-
command: run check
32+
run: |
33+
pipenv run check

.github/workflows/test.yml

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,31 +17,23 @@ jobs:
1717
with:
1818
persist-credentials: false
1919
fetch-depth: 0
20-
- name: Install dependencies
21-
# from https://github.com/VaultVulp/action-pipenv/commits/main
22-
uses: VaultVulp/action-pipenv@0e0abc7839b234802947bb8aa1a7c7b8b00a2ff4
20+
# from https://github.com/palewire/install-python-pipenv-pipfile/commits/main
21+
- name: Install Python, pipenv and Pipfile packages
22+
uses: palewire/install-python-pipenv-pipfile@fae3f6a0c5e68b98df1a416a3bf3f567db461251
2323
with:
24-
command: install -d
24+
python-version: '3.9'
2525
- name: Install library
26-
# from https://github.com/VaultVulp/action-pipenv/commits/main
27-
uses: VaultVulp/action-pipenv@0e0abc7839b234802947bb8aa1a7c7b8b00a2ff4
28-
with:
29-
command: run install_local
26+
run: |
27+
pipenv run install_local
3028
- name: Run tests
31-
# from https://github.com/VaultVulp/action-pipenv/commits/main
32-
uses: VaultVulp/action-pipenv@0e0abc7839b234802947bb8aa1a7c7b8b00a2ff4
33-
with:
34-
command: run coverage run -m pytest
29+
run: |
30+
pipenv run coverage run -m pytest
3531
- name: Generate report
36-
# from https://github.com/VaultVulp/action-pipenv/commits/main
37-
uses: VaultVulp/action-pipenv@0e0abc7839b234802947bb8aa1a7c7b8b00a2ff4
38-
with:
39-
command: run coverage report
32+
run: |
33+
pipenv run coverage report
4034
- name: Generate HTML report
41-
# from https://github.com/VaultVulp/action-pipenv/commits/main
42-
uses: VaultVulp/action-pipenv@0e0abc7839b234802947bb8aa1a7c7b8b00a2ff4
43-
with:
44-
command: run coverage html
35+
run: |
36+
pipenv run coverage html
4537
- name: Upload HTML report
4638
# from https://github.com/actions/upload-artifact/commits/main
4739
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb

0 commit comments

Comments
 (0)