-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Test multiple python versions * Update dependencies * Fix code for Python 3.11
- Loading branch information
1 parent
c9aaaed
commit 69d3132
Showing
4 changed files
with
120 additions
and
112 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,76 +1,77 @@ | ||
name: tests | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
tests: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install poetry | ||
poetry --version | ||
poetry install | ||
- name: Test with pytest | ||
run: | | ||
poetry run pytest --version | ||
poetry run pytest --cov=py4vasp --cov-report term | ||
- name: Check code style | ||
run: | | ||
poetry run isort --version | ||
poetry run isort --check src | ||
poetry run isort --check tests | ||
poetry run black --version | ||
poetry run black --check src | ||
poetry run black --check tests | ||
test-windows: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
python-version: 3.8 | ||
- name: Install dependencies with conda | ||
run: | | ||
conda info | ||
conda install -c conda-forge mdtraj | ||
- name: Install poetry | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install poetry | ||
poetry --version | ||
- name: Install py4vasp | ||
run: | | ||
poetry config virtualenvs.create false --local | ||
poetry install | ||
- name: Test with pytest | ||
run: | | ||
poetry run pytest --version | ||
poetry run pytest --cov=py4vasp --cov-report term | ||
- name: Check code style | ||
run: | | ||
poetry run isort --version | ||
poetry run isort --check src | ||
poetry run isort --check tests | ||
poetry run black --version | ||
poetry run black --check src | ||
poetry run black --check tests | ||
name: tests | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
tests: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
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 | ||
poetry --version | ||
poetry install | ||
- name: Test with pytest | ||
run: | | ||
poetry run pytest --version | ||
poetry run pytest --cov=py4vasp --cov-report term | ||
- name: Check code style | ||
run: | | ||
poetry run isort --version | ||
poetry run isort --check src | ||
poetry run isort --check tests | ||
poetry run black --version | ||
poetry run black --check src | ||
poetry run black --check tests | ||
test-windows: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
python-version: 3.8 | ||
- name: Install dependencies with conda | ||
run: | | ||
conda info | ||
conda install -c conda-forge mdtraj | ||
- name: Install poetry | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install poetry | ||
poetry --version | ||
- name: Install py4vasp | ||
run: | | ||
poetry config virtualenvs.create false --local | ||
poetry install | ||
- name: Test with pytest | ||
run: | | ||
poetry run pytest --version | ||
poetry run pytest --cov=py4vasp --cov-report term | ||
- name: Check code style | ||
run: | | ||
poetry run isort --version | ||
poetry run isort --check src | ||
poetry run isort --check tests | ||
poetry run black --version | ||
poetry run black --check src | ||
poetry run black --check tests |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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