Skip to content

Commit 95017b5

Browse files
update release wf
1 parent 6629de8 commit 95017b5

File tree

2 files changed

+34
-12
lines changed

2 files changed

+34
-12
lines changed

.github/workflows/release.yml

Lines changed: 33 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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"
@@ -39,7 +68,7 @@ jobs:
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
@@ -50,9 +79,3 @@ jobs:
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 }}

docs_rst/conf.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,7 @@
296296

297297

298298
# Example configuration for intersphinx: refer to the Python standard library.
299-
intersphinx_mapping = {"http://docs.python.org/": None}
300-
299+
# intersphinx_mapping = {"http://docs.python.org/": None}
301300

302301
# AJ: a hack found online to get __init__ to show up in docs
303302
def skip(app, what, name, obj, skip, options):

0 commit comments

Comments
 (0)