Skip to content

Commit

Permalink
Update workflows and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinfriede committed Jan 15, 2023
1 parent c482c2a commit a587f06
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 29 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/python.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: CI
name: Tests

on:
push:
branches:
- main
- master
paths-ignore:
- "docs/**"
- "*.md"
- "*.rst"
- "doc*/**"
- "**/*.md"
- "**/*.rst"

pull_request:
paths-ignore:
- "docs/**"
- "*.md"
- "*.rst"
- "doc*/**"
- "**/*.md"
- "**/*.rst"

workflow_dispatch:

Expand Down
30 changes: 20 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,43 @@ name: Build

on:
push:
branches: [main]
branches:
- main
tags:
- "v*"

pull_request:
branches: [main]
branches:
- main

workflow_dispatch:

jobs:
wheel:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v3

- name: Build sdist
- name: Build wheel (bdist)
run: pipx run build --wheel

- uses: actions/upload-artifact@v3
- name: Upload wheel as artifact
uses: actions/upload-artifact@v3
with:
path: dist/*.whl

sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v3

- name: Build sdist
- name: Build source distribution (sdist)
run: pipx run build --sdist

- uses: actions/upload-artifact@v3
- name: Upload source distribution as artifact
uses: actions/upload-artifact@v3
with:
path: dist/*.tar.gz

Expand All @@ -39,12 +47,14 @@ jobs:
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v3
- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: artifact
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import tad_dftd3

project = "Torch autodiff DFT-D3"
author = "Sebastian Ehlert"
author = "Sebastian Ehlert, Marvin Friede"
copyright = f"2022 {author}"

extensions = [
Expand Down
6 changes: 4 additions & 2 deletions doc/modules/damping.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.. _damping:

.. automodule:: tad_dftd3.damping

.. toctree::

rational
atm
rational
atm
20 changes: 11 additions & 9 deletions doc/modules/index.rst
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
.. _module:

Module reference
================

The following modules are contained with `tad_dftd3`.
The following modules are contained with `tad-dftd3`.

.. toctree::

dftd3
disp
damping
model
ncoord
reference
data
util
dftd3
disp
damping
model
ncoord
reference
data
util

0 comments on commit a587f06

Please sign in to comment.