Skip to content

Commit 0928c46

Browse files
WilliamBergaminClaude
andauthored
ci: add python 3.15 and run lint and tests from one workflow (#92)
Co-authored-by: Claude <svc-devxp-claude@slack-corp.com>
1 parent b8be598 commit 0928c46

3 files changed

Lines changed: 51 additions & 56 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 5
13+
steps:
14+
- uses: actions/checkout@v7
15+
- name: Set up Python
16+
uses: actions/setup-python@v7
17+
with:
18+
python-version: "3.15"
19+
- name: Install dependencies
20+
run: |
21+
pip install -U pip
22+
pip install -r requirements.txt
23+
- name: Lint and check formatting
24+
run: |
25+
ruff check .
26+
ruff format --check .
27+
test:
28+
runs-on: ubuntu-latest
29+
timeout-minutes: 5
30+
strategy:
31+
matrix:
32+
python-version:
33+
- "3.10"
34+
- "3.11"
35+
- "3.12"
36+
- "3.13"
37+
- "3.14"
38+
- "3.15"
39+
steps:
40+
- uses: actions/checkout@v7
41+
- name: Set up Python ${{ matrix.python-version }}
42+
uses: actions/setup-python@v7
43+
with:
44+
python-version: ${{ matrix.python-version }}
45+
- name: Install dependencies
46+
run: |
47+
pip install -U pip
48+
pip install -r requirements.txt
49+
- name: Run all tests
50+
run: |
51+
pytest . -v

‎.github/workflows/lint.yml‎

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

‎.github/workflows/tests.yml‎

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

0 commit comments

Comments
 (0)