Repository navigation
64 lines (51 loc) · 1.42 KB
/
Copy pathpytest.yml
File metadata and controls
64 lines (51 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Formatting and Tests
on:
- pull_request
jobs:
test:
runs-on: ubuntu-latest
name: Pytest and formatting
strategy:
max-parallel: 4
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
steps:
- name: Cloning repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install --no-root
- name: Check Formatting
run: |
poetry run ruff format --check
poetry run ruff check
- name: Run Tests
run: poetry run pytest
test-sdk-floor:
runs-on: ubuntu-latest
name: Pytest against the minimum supported flagsmith version
steps:
- name: Cloning repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install --no-root
poetry run pip install flagsmith==5.5.0
- name: Run Tests
run: poetry run pytest