Skip to content

Commit 4b98d9a

Browse files
ci(github): refactor workflow test.yml
1 parent c4834e2 commit 4b98d9a

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

.github/workflows/test.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
with:
3232
token: ${{ secrets.CODECOV_TOKEN }}
3333

34-
integration:
34+
install:
3535
runs-on: ubuntu-latest
3636
steps:
3737
- name: Checkout repository
@@ -56,5 +56,25 @@ jobs:
5656
- name: Get help
5757
run: python_cli_template --help
5858

59-
- name: Execute CLI
60-
run: python_cli_template --name test
59+
integration:
60+
runs-on: ubuntu-latest
61+
strategy:
62+
matrix:
63+
command:
64+
- python_cli_template
65+
- python_cli_template --name test
66+
steps:
67+
- name: Checkout repository
68+
uses: actions/checkout@v4
69+
70+
- name: Use Python
71+
uses: actions/setup-python@v5
72+
with:
73+
cache: pip
74+
python-version: 3
75+
76+
- name: Install package
77+
run: pipx install .
78+
79+
- name: Run command
80+
run: ${{ matrix.command }}

0 commit comments

Comments
 (0)