Fix version of ruff #80
Workflow file for this run
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
name: install-and-test | |
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 | |
# we need the latest nomad version for testing | |
pip install nomad-lab[infrastructure]@git+https://github.com/nomad-coe/nomad.git@develop | |
pip install '.[dev]' --index-url https://gitlab.mpcdf.mpg.de/api/v4/projects/2187/packages/pypi/simple | |
pip install coverage coveralls | |
- name: mypy | |
run: | | |
python -m mypy --ignore-missing-imports --follow-imports=silent --no-strict-optional simulationdataschema tests | |
- name: Test with pytest | |
run: | | |
python -m coverage run -m pytest -sv tests | |
ruff-linting: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: chartboost/ruff-action@v1 | |
with: | |
args: "check ." | |
ruff-formatting: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: chartboost/ruff-action@v1 | |
with: | |
args: "format . --check --verbose" | |
version: 0.1.8 |