Skip to content

Implement minimal py4vasp-core package #2

Implement minimal py4vasp-core package

Implement minimal py4vasp-core package #2

Workflow file for this run

name: test-full
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!=1.4.1"
poetry --version
cd full
poetry install
- name: Test with pytest
run: |
cd full
poetry shell
cd ..
pytest --version
pytest --cov=py4vasp --cov-report term
- name: Check code style
run: |
cd full
poetry shell
cd ..
isort --version
isort --check src
isort --check tests
black --version
black --check src
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 py4vasp
# run: |
# python -m pip install --upgrade pip
# cd full
# pip install .
# - name: Test with pytest
# run: |
# pip install pytest pytest-cov hypothesis
# pytest --version
# pytest --cov=py4vasp --cov-report term
# - name: Check code style
# run: |
# pip install black isort
# isort --version
# isort --check src
# isort --check tests
# black --version
# black --check src
# black --check tests