-
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.
* Repo readme edits (#20) * Readme updated * pyproject.toml updated * Switched to source-based layout * precommit and ci updated * precommit and devrequirements created fresh --------- Co-authored-by: mkuehbach <[email protected]> * Fixed linting (#21) Co-authored-by: mkuehbach <[email protected]> * Relocate files and fix #18 (#22) * Relocate files and fix #18 * Adding FAIRmat docs corporate to fix #16 * Relocated mkdocs * Cleaned unnecessary readme.md --------- Co-authored-by: mkuehbach <[email protected]> * Reverted unintentional change of build docs * Added programmatic tests (#24) * Added programmatic tests * Add debug configuration * Various fixes * Fixed unknown enum for service * if map_to_bool gets a value that is itself a bool the if src_val will do nothing * Bumped pynxtools to 0.7.0 --------- Co-authored-by: mkuehbach <[email protected]> --------- Co-authored-by: mkuehbach <[email protected]>
- Loading branch information
1 parent
adcfd67
commit f086312
Showing
40 changed files
with
713 additions
and
349 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,27 +1,41 @@ | ||
name: build_docs | ||
on: | ||
push: | ||
branches: [main] | ||
branches: | ||
- main # Triggers deployment on push to the main branch | ||
|
||
env: | ||
UV_SYSTEM_PYTHON: true | ||
permissions: | ||
contents: write | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
- name: Configure Git Credentials | ||
run: | | ||
git config user.name github-actions[bot] | ||
git config user.email 41898282+github-actions[bot]@users.noreply.github.com | ||
- uses: actions/setup-python@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV | ||
- uses: actions/cache@v3 | ||
python-version: '3.x' | ||
|
||
- name: Cache mkdocs-material enviroment | ||
uses: actions/cache@v3 | ||
with: | ||
key: mkdocs-material-${{ env.cache_id }} | ||
path: .cache | ||
restore-keys: | | ||
mkdocs-material- | ||
- run: pip install ".[docs]" | ||
- run: mkdocs gh-deploy --force | ||
- name: Install Dependencies | ||
run: | | ||
curl -LsSf https://astral.sh/uv/install.sh | sh | ||
uv pip install ".[docs]" | ||
- name: Build and Deploy | ||
run: | | ||
mkdocs gh-deploy --force --remote-branch 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,45 @@ | ||
# This workflow will upload a Python Package using Twine when a release is created | ||
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries | ||
|
||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
name: Upload Python Package | ||
|
||
on: workflow_dispatch | ||
# release: | ||
# types: [published] | ||
env: | ||
UV_SYSTEM_PYTHON: true | ||
|
||
jobs: | ||
deploy: | ||
name: Upload release to PyPI | ||
runs-on: ubuntu-latest | ||
|
||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/pynxtools-apm | ||
permissions: | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
submodules: recursive | ||
# submodules: recursive | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.x" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install build | ||
curl -LsSf https://astral.sh/uv/install.sh | sh | ||
uv pip install build | ||
- name: Build package | ||
run: python -m build | ||
- name: Publish package | ||
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
# 27b31702a0e7fc50959f5ad993c78deac1bdfc29 | ||
# with: | ||
# user: __token__ | ||
# 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "pynx-apm debug", | ||
"type": "python", | ||
"request": "launch", | ||
"cwd": "${workspaceFolder}", | ||
"program": "../.py3.12.4/bin/dataconverter", | ||
"args": [//"convert", | ||
"tests/data/eln/eln_data.yaml", | ||
"tests/data/eln/apm.oasis.specific.yaml", | ||
"tests/data/apt/Si.apt", | ||
"tests/data/rng/87D_1.rng", | ||
"--reader", | ||
"apm", | ||
"--nxdl", | ||
"NXapm", | ||
"--output=tests/prod/apt.Si.apt.nxs"] | ||
} | ||
] | ||
} |
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.