-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from loucerac/develop
Develop
- Loading branch information
Showing
18 changed files
with
2,030 additions
and
2,245 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,44 @@ | ||
name: Docs2Pages | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
workflow_run: | ||
workflows: ["CI"] | ||
types: | ||
- completed | ||
permissions: | ||
contents: write | ||
jobs: | ||
build-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
- name: Install and configure Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
version: latest | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
installer-parallel: true | ||
- name: Install package | ||
run: poetry install | ||
- name: Build documentation | ||
run: | | ||
mkdir gh-pages | ||
touch gh-pages/.nojekyll | ||
cd docs/ | ||
poetry run make html | ||
cp -r build/* ../gh-pages/ | ||
cd ../gh-pages/ | ||
cp -r html/* . | ||
rm -rf html/ | ||
- name: Deploy documentation | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
folder: gh-pages | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- uses: pdm-project/setup-pdm@v3 | ||
with: | ||
prerelease: false | ||
enable-pep582: false | ||
allow-python-prereleases: false | ||
|
||
- name: Install package | ||
run: pdm install | ||
|
||
- name: Build documentation | ||
run: | | ||
mkdir gh-pages | ||
touch gh-pages/.nojekyll | ||
cd docs/ | ||
pdm run make html | ||
cp -r build/* ../gh-pages/ | ||
cd ../gh-pages/ | ||
cp -r html/* . | ||
rm -rf html/ | ||
- name: Deploy documentation | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
folder: gh-pages |
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,52 @@ | ||
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
build-n-publish: | ||
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.x" | ||
- name: Setup PDM | ||
uses: pdm-project/setup-pdm@v3 | ||
with: | ||
prerelease: false | ||
enable-pep582: false | ||
allow-python-prereleases: false | ||
# - name: Install pypa/build | ||
# run: >- | ||
# python3 -m | ||
# pip install | ||
# build | ||
# --user | ||
# - name: Build a binary wheel and a source tarball | ||
# run: >- | ||
# python3 -m | ||
# build | ||
# --sdist | ||
# --wheel | ||
# --outdir dist/ | ||
# . | ||
- name: Build a binary wheel and a source tarball | ||
run: >- | ||
pdm build | ||
- name: Publish distribution 📦 to Test PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | ||
repository-url: https://test.pypi.org/legacy/ | ||
- name: Publish distribution 📦 to PyPI | ||
if: startsWith(github.ref, 'refs/tags') | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
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 |
---|---|---|
|
@@ -288,4 +288,5 @@ results_July2021_gpu | |
scripts/automorf.ipynb | ||
debug.ipynb | ||
|
||
dask-worker-space/ | ||
dask-worker-space/ | ||
.pdm-python |
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
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
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.