forked from davidwaroquiers/atomate2
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
514 changed files
with
36,811 additions
and
5,933 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
changelog: | ||
exclude: | ||
authors: [ dependabot, github-actions ] | ||
categories: | ||
- title: New Features 🎉 | ||
labels: | ||
- feature | ||
- title: Bug Fixes 🐛 | ||
labels: | ||
- fix | ||
- title: Enhancements 🛠 | ||
labels: | ||
- enhancement | ||
- title: Documentation 📖 | ||
labels: | ||
- documentation | ||
- title: House-Keeping 🧹 | ||
labels: | ||
- house-keeping | ||
- title: Other Changes | ||
labels: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: build-docs | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [main] | ||
|
||
# set GITHUB_TOKEN permissions to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
jobs: | ||
build-docs: | ||
if: github.repository_owner == 'materialsproject' && github.ref == 'refs/heads/main' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.workflow_run.head_branch }} | ||
|
||
- name: Install pandoc | ||
run: sudo apt-get install pandoc | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
cache: pip | ||
cache-dependency-path: pyproject.toml | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install .[strict,docs] | ||
- name: Build | ||
run: sphinx-build docs docs_build | ||
|
||
- name: Upload build artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: ./docs_build | ||
|
||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
needs: build-docs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,30 +2,24 @@ name: testing | |
|
||
on: | ||
push: | ||
|
||
branches: [main] | ||
tags: ['v*'] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
python-version: "3.8" | ||
cache: pip | ||
cache-dependency-path: pyproject.toml | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install .[strict,tests,dev] | ||
- name: Lint | ||
run: pre-commit run --all-files --show-diff-on-failure | ||
- uses: pre-commit/[email protected] | ||
|
||
test: | ||
services: | ||
|
@@ -37,7 +31,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ['3.8', '3.9', '3.10'] | ||
python-version: ["3.8", "3.9", "3.10"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -51,7 +45,7 @@ jobs: | |
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install .[strict,tests,docs] | ||
pip install .[strict,tests] | ||
- name: Test | ||
env: | ||
|
@@ -72,7 +66,7 @@ jobs: | |
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
python-version: "3.10" | ||
cache: pip | ||
cache-dependency-path: pyproject.toml | ||
|
||
|
@@ -82,4 +76,15 @@ jobs: | |
pip install .[strict,docs] | ||
- name: Build | ||
run: jupyter-book build docs --path-output docs_build | ||
run: sphinx-build docs docs_build | ||
|
||
automerge: | ||
needs: [lint, test, docs] | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
pull-requests: write | ||
contents: write | ||
|
||
steps: | ||
- uses: fastify/github-action-merge-dependabot@v3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.