Skip to content

Commit 7f34db5

Browse files
committed
test: combine all e2e tests to the same workflow file
1 parent 6e4c82b commit 7f34db5

File tree

5 files changed

+38
-128
lines changed

5 files changed

+38
-128
lines changed

.github/workflows/e2e_test.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: E2E test in all environments
2+
on:
3+
push:
4+
paths:
5+
- 'src/**'
6+
- 'tests/**'
7+
- '.github/workflows/e2e_test.yml'
8+
workflow_dispatch:
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ['3.8', '3.9', '3.10']
15+
game:
16+
- name: baseball
17+
script: tests/test_baseball.sh
18+
- name: grid
19+
script: tests/test_grid.sh
20+
- name: navigation
21+
script: tests/test_nav.sh
22+
- name: soccer
23+
script: tests/test_soccer.sh
24+
steps:
25+
- uses: actions/checkout@v3
26+
- uses: actions/setup-python@v4
27+
with:
28+
python-version: ${{ matrix.python-version }}
29+
30+
- name: Install dependencies
31+
run: |
32+
python -m pip install --upgrade pip
33+
pip install -r requirements.txt
34+
35+
- name: Test ${{ matrix.game.name }} game
36+
run: |
37+
chmod +x ${{ matrix.game.script }}
38+
${{ matrix.game.script }}

.github/workflows/test_baseball.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/test_grid.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/test_nav.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/test_soccer.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)