File tree Expand file tree Collapse file tree 2 files changed +62
-0
lines changed Expand file tree Collapse file tree 2 files changed +62
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish to PyPI
2
+
3
+ on :
4
+ release :
5
+ types : [published]
6
+
7
+ jobs :
8
+ deploy :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v4
12
+
13
+ - name : Set up Python
14
+ uses : actions/setup-python@v4
15
+ with :
16
+ python-version : ' 3.12'
17
+
18
+ - name : Install dependencies
19
+ run : |
20
+ python -m pip install --upgrade pip
21
+ pip install build
22
+
23
+ - name : Build package
24
+ run : python -m build
25
+
26
+ - name : Publish to PyPI
27
+ uses : pypa/gh-action-pypi-publish@release/v1
28
+ with :
29
+ password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : Tests
2
+
3
+ on :
4
+ push :
5
+ branches : [ main ]
6
+ pull_request :
7
+ branches : [ main ]
8
+
9
+ jobs :
10
+ test :
11
+ runs-on : ubuntu-latest
12
+ strategy :
13
+ matrix :
14
+ python-version : ["3.11", "3.12"]
15
+
16
+ steps :
17
+ - uses : actions/checkout@v4
18
+
19
+ - name : Set up Python ${{ matrix.python-version }}
20
+ uses : actions/setup-python@v4
21
+ with :
22
+ python-version : ${{ matrix.python-version }}
23
+
24
+ - name : Install dependencies
25
+ run : |
26
+ python -m pip install --upgrade pip
27
+ python -m pip install uv
28
+ uv pip install -r requirements.txt
29
+ uv pip install -r requirements-dev.txt
30
+
31
+ - name : Run tests
32
+ run : |
33
+ pytest
You can’t perform that action at this time.
0 commit comments