Skip to content

License update

License update #16

Workflow file for this run

name: ci-testing
on: [push, pull_request]
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install the package & requirements
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: Run the test suite \w coverage
if: ${{ matrix.python-version }} == "3.11"
run: pytest --cov=aiidalab_alc --cov-report xml:coverage.xml
- name: Run the test suite without coverage
if: ${{ matrix.python-version }} != "3.11"
run: pytest
style-check:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install ruff
run: pip install ruff
- name: Run the linter
run: ruff check
- name: Run the format checker
run: ruff format --check