@@ -20,16 +20,45 @@ jobs:
2020 with :
2121 python-version : ${{ matrix.python-version }}
2222 cache : " pip"
23- cache-dependency-path : ' **/setup.py'
2423
2524 - name : Install dependencies
2625 run : |
2726 python${{ matrix.python-version }} -m pip install --upgrade pip pip-tools build setuptools setuptools_scm wheel
2827 python${{ matrix.python-version }} -m piptools sync --user requirements/ubuntu-latest_py${{ matrix.python-version }}.txt
29- # Using non-editable install for testing building of MANIFEST files
3028 python${{ matrix.python-version }} -m pip install --no-deps .
3129
32- - name : Build package and docs
30+ - name : Build package
31+ run : python${{ matrix.python-version }} -m build
32+
33+ - name : Publish package
34+ uses : pypa/gh-action-pypi-publish@release/v1.5
35+ with :
36+ user : __token__
37+ password : ${{ secrets.PYPI_TOKEN }}
38+
39+ docs :
40+ runs-on : ubuntu-latest
41+ strategy :
42+ matrix :
43+ python-version : ["3.12"]
44+
45+ steps :
46+ - uses : actions/checkout@v3
47+ with :
48+ fetch-depth : 0
49+
50+ - uses : actions/setup-python@v4
51+ with :
52+ python-version : ${{ matrix.python-version }}
53+ cache : " pip"
54+
55+ - name : Install dependencies
56+ run : |
57+ python${{ matrix.python-version }} -m pip install --upgrade pip pip-tools build setuptools setuptools_scm wheel
58+ python${{ matrix.python-version }} -m piptools sync --user requirements/ubuntu-latest_py${{ matrix.python-version }}.txt
59+ python${{ matrix.python-version }} -m pip install --no-deps .
60+
61+ - name : Build docs
3362 run : |
3463 git config --local user.email "feedback@materialsproject.org"
3564 git config --local user.name "materialsproject"
3968 cd docs_rst
4069 python${{ matrix.python-version }} featurizer_summary.py > featurizer_summary.rst
4170 python${{ matrix.python-version }} dataset_summary.py > dataset_summary.rst
42- sphinx-apidoc -o . -f ../matminer
71+ sphinx-apidoc -o . -f ../src/ matminer
4372 make html
4473 cp _static/* ../docs/html/_static
4574 cd ../docs
5079 git add .
5180 git commit -a -m "update docs"
5281 git push
53-
54- - name : Publish package
55- uses : pypa/gh-action-pypi-publish@release/v1.5
56- with :
57- user : __token__
58- password : ${{ secrets.PYPI_TOKEN }}
0 commit comments