File tree Expand file tree Collapse file tree 3 files changed +54
-66
lines changed Expand file tree Collapse file tree 3 files changed +54
-66
lines changed Original file line number Diff line number Diff line change 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
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments