@@ -2,54 +2,23 @@ name: CI
22
33on :
44 schedule :
5- - cron : 00 00 * * 1 # run every Monday at 00:00
5+ - cron : 00 00 * * 1 # Run every Monday at 00:00
66 push :
7- branches :
8- - main
9- tags :
10- - v[0-9]+.[0-9]+.[0-9]+
7+ branches : [main]
118 pull_request :
12- branches :
13- - main
9+ branches : [main]
1410
1511concurrency :
1612 group : ${{ github.workflow }}-${{ github.ref }}
1713 cancel-in-progress : true
1814
19-
2015jobs :
21- lint :
22- runs-on : ubuntu-latest
23- steps :
24- - uses : actions/checkout@v3
25- - name : Set up Python
26- uses : actions/setup-python@v4
27- with :
28- python-version : ' 3.10'
29-
30- - uses : actions/cache@v3
31- with :
32- path : ~/.cache/pre-commit
33- key : precommit-${{ env.pythonLocation }}-${{ hashFiles('**/.pre-commit-config.yaml') }}
34-
35- - name : Install dependencies
36- run : |
37- sudo apt-get update -y
38- sudo apt install libenchant-2-dev pandoc
39- python -m pip install --upgrade pip
40- python -m pip install tox
41-
42- - name : Linting
43- run : |
44- tox -e lint,check-docs,readme
45-
4616 test :
4717 runs-on : ${{ matrix.os }}
4818 strategy :
4919 fail-fast : false
50- max-parallel : 5
5120 matrix :
52- python : ['3.8', '3.10', '3.11']
21+ python : ['3.8', '3.10', '3.11', '3.12' ]
5322 os : [ubuntu-latest]
5423 slepc : ['noslepc']
5524 include :
8756 env_vars : OS,PYTHON
8857 fail_ci_if_error : false
8958 verbose : true
90-
91- deploy :
92- needs : [lint, test]
93- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
94- runs-on : ubuntu-latest
95- steps :
96- - uses : actions/checkout@v3
97- - name : Set up Python
98- uses : actions/setup-python@v4
99- with :
100- python-version : ' 3.10'
101- - name : Install pypa/build
102- run : |
103- python -m pip install --upgrade pip
104- pip install build
105- - name : Build a binary wheel and a source tarball
106- run : |
107- python -m build --sdist --wheel --outdir dist/
108-
109- - name : Publish package on PyPI
110- uses : pypa/gh-action-pypi-publish@release/v1
111- with :
112- user : __token__
113- password : ${{ secrets.PYPI_PASSWORD }}
114- skip_existing : true
115- verify-metadata : true
116- verbose : true
0 commit comments