Skip to content

Commit 6df269e

Browse files
committed
Consolidate CI to single workflow file
1 parent 5f5ec29 commit 6df269e

File tree

3 files changed

+54
-66
lines changed

3 files changed

+54
-66
lines changed

.github/workflows/ci.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: CI
2+
permissions:
3+
contents: read
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
pull_request:
10+
workflow_dispatch:
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout Code
17+
uses: actions/checkout@v4
18+
with:
19+
persist-credentials: false
20+
21+
- name: Setup Python
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: '3.12'
25+
26+
- name: Install Dependencies
27+
run: pip install .[dev]
28+
29+
- name: Lint
30+
run: pre-commit run --all-files
31+
32+
test:
33+
name: Unit Tests
34+
runs-on: ubuntu-latest
35+
steps:
36+
- name: Checkout Code
37+
uses: actions/checkout@v4
38+
with:
39+
fetch-depth: 0
40+
persist-credentials: false
41+
42+
- name: Setup Python
43+
uses: actions/setup-python@v4
44+
with:
45+
python-version: '3.12'
46+
47+
- name: Install Dependencies
48+
run: |
49+
python -m pip install --upgrade pip
50+
pip install .[dev]
51+
52+
- name: Run Unit Tests
53+
run: |
54+
pytest

.github/workflows/pre-commit.yaml

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

.github/workflows/test.yml

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

0 commit comments

Comments
 (0)