-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement minimal py4vasp-core package (#96)
* Create new poetry file for py4vasp-core in subfolder * Implement optional import routine * Implement fixture to skip test on py4vasp-core/py4vasp * Skip all tests that cannot pass because an optional package is missing * Update Github actions to test both py4vasp and py4vasp-core * Update README to include description of py4vasp-core
- Loading branch information
1 parent
2e319be
commit 07a2aa0
Showing
34 changed files
with
2,148 additions
and
1,659 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,61 @@ | ||
name: test-core | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
tests: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
python-version: ["3.8", "3.9", "3.10"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install "poetry!=1.4.1" | ||
cp core/* . | ||
poetry --version | ||
poetry install | ||
- name: Test with pytest | ||
run: | | ||
poetry run pytest --version | ||
poetry run pytest | ||
test-windows: | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies with conda | ||
run: | | ||
conda info | ||
conda install -c conda-forge mdtraj | ||
- name: Install py4vasp | ||
run: | | ||
python -m pip install --upgrade pip | ||
cp core/* . | ||
pip install . | ||
- name: Test with pytest | ||
run: | | ||
pip install pytest pytest-cov hypothesis | ||
pytest --version | ||
pytest |
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.