File tree Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches :
7
+ - main
8
+
9
+ jobs :
10
+ pre-commit :
11
+ name : Lint
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+ - uses : actions/setup-python@v5
16
+ with :
17
+ python-version : ' 3.11'
18
+ -
uses :
pre-commit/[email protected]
19
+ test :
20
+ name : Test
21
+ runs-on : ${{ matrix.os }}
22
+ strategy :
23
+ matrix :
24
+ os : [ubuntu-latest]
25
+ python-version : ["3.9", "3.12"]
26
+ steps :
27
+ - uses : actions/checkout@v4
28
+ - name : Set up Python ${{ matrix.python-version }}
29
+ uses : actions/setup-python@v5
30
+ with :
31
+ python-version : ${{ matrix.python-version }}
32
+ - name : Install dependencies
33
+ run : |
34
+ python -m pip install --upgrade pip
35
+ python -m pip install '.[dev]'
36
+ - name : Run tests
37
+ run : |
38
+ pytest
39
+
40
+ packaging :
41
+ name : Packaging
42
+ runs-on : ubuntu-latest
43
+ steps :
44
+ - uses : actions/checkout@v4
45
+ - uses : actions/setup-python@v5
46
+ with :
47
+ python-version : ' 3.11'
48
+ - name : Install dependencies
49
+ run : |
50
+ python -m pip install --upgrade pip
51
+ python -m pip install build twine validate-pyproject[all]
52
+ - name : Check and install package
53
+ run : |
54
+ validate-pyproject pyproject.toml
55
+ python -m build
56
+ python -m twine check --strict dist/*
57
+ python -m pip install dist/*.whl
You can’t perform that action at this time.
0 commit comments