-
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 #2 from JuDFTteam/develop
Release 0.3.0
- Loading branch information
Showing
12 changed files
with
198 additions
and
705 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 |
---|---|---|
|
@@ -29,6 +29,7 @@ jobs: | |
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements-ci.txt --quiet | ||
pip install -e . | ||
- name: mypy | ||
run: | | ||
mypy --namespace-packages --explicit-package-bases pymatgen | ||
|
@@ -54,7 +55,7 @@ jobs: | |
max-parallel: 20 | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: [3.7,3.8,3.9] | ||
python-version: ["3.7","3.8","3.9","3.10"] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
|
@@ -64,15 +65,20 @@ jobs: | |
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
- name: Build pymatgen with compatible numpy | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install --quiet -r requirements.txt -r requirements-ci.txt | ||
pip install -e . | ||
pip install numpy==1.21.4 wheel | ||
pip install pymatgen==2022.0.16 --no-cache-dir --no-build-isolation | ||
- name: Install dependencies | ||
run: | | ||
pip install --quiet -r requirements-ci.txt | ||
pip install masci-tools | ||
pip install --no-deps -e . | ||
- name: pytest | ||
run: | | ||
pytest --cov=pymatgen.io.fleur --durations=30 pymatgen | ||
publish: | ||
name: Publish to PyPi | ||
needs: [tests, linting] #pylint-warnings could be added at some later point | ||
|
@@ -84,12 +90,12 @@ jobs: | |
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
- name: Build package | ||
- name: Install flit | ||
run: | | ||
pip install flit~=3.5 | ||
- name: Build and Publish to PyPi | ||
run: | | ||
pip install wheel | ||
python setup.py sdist bdist_wheel | ||
- name: Publish to PyPi | ||
uses: pypa/[email protected] | ||
flit publish | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_KEY }} | ||
FLIT_USERNAME: __token__ | ||
FLIT_PASSWORD: ${{ secrets.PYPI_KEY }} |
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
Oops, something went wrong.