Skip to content

Commit a540497

Browse files
committed
CAIP-80 fix workflow file
1 parent b980a2f commit a540497

1 file changed

Lines changed: 12 additions & 22 deletions

File tree

.github/workflows/e2e-build.yml

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,27 @@
1-
name: build
2-
1+
name: E2E Tests
32
on:
43
push:
54
branches: [ "main", "*-rc" ]
65
pull_request:
76
branches: [ "main", "*-rc" ]
87

98
jobs:
10-
build:
9+
e2e-test:
1110
runs-on: ubuntu-latest
12-
strategy:
13-
matrix:
14-
python-version: [ '3.12' ]
15-
os: [ ubuntu-latest ]
16-
include:
17-
- os: ubuntu-latest
18-
path: ~/.cache/pypoetry/virtualenvs
19-
- os: macos-latest
20-
path: ~/Library/Caches/pypoetry/virtualenvs
21-
- os: windows-latest
22-
path: ~\AppData\Local\pypoetry\Cache\virtualenvs
2311

2412
steps:
2513
- uses: actions/checkout@v4
2614

27-
- name: Set up Python ${{ matrix.python-version }}
15+
- name: Set up Python
2816
id: setup-python
2917
uses: actions/setup-python@v4
3018
with:
31-
python-version: ${{ matrix.python-version }}
19+
python-version: '3.12'
3220

3321
- name: Get pip cache dir
3422
id: pip-cache
3523
run: |
36-
echo "::set-output name=dir::$(pip cache dir)"
24+
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
3725
- name: Cache pip dependencies
3826
uses: actions/cache@v4
3927
with:
@@ -43,17 +31,20 @@ jobs:
4331
- name: Install Poetry
4432
run: pip install poetry
4533

46-
- name: Cache poetry
34+
- name: Install Poetry plugins
35+
run: poetry self add poetry-plugin-export
36+
37+
- name: Cache poetry virtualenv
4738
uses: actions/cache@v4
4839
with:
49-
path: ${{ matrix.path }}
40+
path: ~/.cache/pypoetry/virtualenvs
5041
key: ${{ runner.os }}-poetry-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('poetry.lock') }}
5142
restore-keys: |
5243
${{ runner.os }}-poetry-${{ steps.setup-python.outputs.python-version }}-
5344
- name: Install dependencies
5445
run: poetry install
5546

56-
- name: Run e2e tests with coverage
47+
- name: Run E2E tests
5748
env:
5849
TEST_RSA_KEY: ${{ secrets.TEST_RSA_KEY }}
5950
MSG_BOT_USERNAME: ${{ vars.MSG_BOT_USERNAME }}
@@ -62,6 +53,5 @@ jobs:
6253
SYMPHONY_HOST: ${{ vars.SYMPHONY_HOST }}
6354
TEST_USER_ID: ${{ vars.TEST_SYM_USER_ID }}
6455
BOT_USER_ID: ${{ vars.BOT_USER_ID }}
65-
run: poetry run pytest
56+
run: poetry run pytest -m e2e
6657
timeout-minutes: 10
67-

0 commit comments

Comments
 (0)