Skip to content

Commit 80ea2fa

Browse files
author
s.kazemi
committed
feat: tests stage for workflow
1 parent baa1260 commit 80ea2fa

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Behave Tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ '*' ]
8+
9+
jobs:
10+
behave-tests:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.13"]
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
24+
- name: Install Poetry
25+
uses: snok/install-poetry@v1
26+
with:
27+
virtualenvs-create: true
28+
virtualenvs-in-project: true
29+
30+
- name: Cache Poetry virtualenv
31+
uses: actions/cache@v3
32+
id: cache
33+
with:
34+
path: .venv
35+
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}
36+
37+
- name: Install dependencies
38+
run: make install-dev
39+
40+
- name: Run Behave tests
41+
run: make behave

0 commit comments

Comments
 (0)