Skip to content

added test workflows (#12) #1

added test workflows (#12)

added test workflows (#12) #1

Workflow file for this run

# Workflow file for fast unit tests which run on all commits
name: Unit tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
- uses: chartboost/ruff-action@v1
with:
args: 'format --check'
unit-tests:
name: Unit tests

Check failure on line 20 in .github/workflows/unit_tests.yaml

View workflow run for this annotation

GitHub Actions / Unit tests

Invalid workflow file

The workflow is not valid. .github/workflows/unit_tests.yaml (Line: 20, Col: 5): Required property is missing: runs-on
needs: ruff # avoid wasting CI time if static analysis failed
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-13]
steps:
- uses: actions/checkout@v4
- name: Set up Conda environment from environment.yaml
uses: conda-incubator/setup-miniconda@v3
with:
environment-file: environment.yaml
auto-activate-base: false
- name: Install RasCAL2
run: pip install .
- name: Run pytest
run: pytest -s tests/ -m "not slow" --cov=rascal2 --cov-report=term