File tree Expand file tree Collapse file tree 1 file changed +25
-4
lines changed Expand file tree Collapse file tree 1 file changed +25
-4
lines changed Original file line number Diff line number Diff line change 1
- name : test
2
- run-name : Test
3
- on : [ push ]
1
+ name : Test and Deploy
2
+ on : push
4
3
jobs :
5
4
test :
6
5
strategy :
7
6
fail-fast : false
8
7
matrix :
9
- python-version : [ '3.10', '3.11', '3.12' ]
8
+ # python-version: [ '3.10', '3.11', '3.12' ] # TODO: Re-include to 3.11 and 3.12
9
+ python-version : [ '3.10' ]
10
10
os : [ ubuntu-latest ]
11
11
runs-on : ${{ matrix.os }}
12
12
steps :
31
31
32
32
- name : Run tests
33
33
run : make test
34
+
35
+ deploy-to-pypi-test :
36
+ name : Deploy to TestPyPI
37
+ runs-on : ubuntu-latest
38
+ needs : test
39
+ if : github.ref == 'refs/heads/develop'
40
+
41
+ steps :
42
+ - name : Install poetry
43
+ run : pipx install poetry
44
+
45
+ - name : Setup Python
46
+ uses : actions/setup-python@v3
47
+ with :
48
+ python-version : ' 3.10'
49
+
50
+ - name : Configure Poetry for TestPyPI
51
+ run : poetry config repositories.testpypi https://test.pypi.org/legacy/
52
+
53
+ - name : Build and publish to TestPyPI
54
+ run : poetry publish --build --repository testpypi
You can’t perform that action at this time.
0 commit comments