forked from nomad-coe/nomad-parser-plugin-example
-
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.
Merge pull request nomad-coe#1 from nomad-coe/actions
Fixed nomad-lab version and readme.
- Loading branch information
Showing
4 changed files
with
93 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: install-and-test-workflow | ||
on: [push] | ||
jobs: | ||
install-and-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- name: Install dependencies | ||
run: | | ||
pip install --upgrade pip | ||
pip install -r requirements.txt --index-url https://gitlab.mpcdf.mpg.de/api/v4/projects/2187/packages/pypi/simple | ||
- name: Test with pytest | ||
run: | | ||
python -m pytest -sv tests | ||
- name: Test with nomad | ||
run: | | ||
python -m nomad.cli parse tests/data/test.example-format.txt | ||
build-and-install: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- name: Build the package | ||
run: | | ||
pip install --upgrade pip | ||
pip install build | ||
python -m build --sdist | ||
- name: Install the package | ||
run: | | ||
pip install dist/*.tar.gz --index-url https://gitlab.mpcdf.mpg.de/api/v4/projects/2187/packages/pypi/simple | ||
- name: Test with nomad | ||
run: | | ||
python -m nomad.cli parse tests/data/test.example-format.txt |
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,28 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = 'nomad-parser-plugin-example' | ||
version = '1.0' | ||
description = 'An example parser plugin for NOMAD.' | ||
readme = "README.md" | ||
authors = [{ name = "The NOMAD Authors" }] | ||
license = { text = "Apache-2.0" } | ||
dependencies = [ | ||
"nomad-lab>=1.2.0" | ||
] | ||
|
||
[project.urls] | ||
homepage = "https://github.com/nomad-coe/nomad-parser-example-plugin" | ||
|
||
[project.optional-dependencies] | ||
tests = [ | ||
'pytest' | ||
] | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["nomadparserexample*"] | ||
|
||
[tool.setuptools.package-data] | ||
nomadschemaexample = ['*/nomad_plugin.yaml'] |
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