Skip to content

Get automated tests going #2

Get automated tests going

Get automated tests going #2

Workflow file for this run

name: CI
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python 3.11.8
uses: actions/setup-python@v4
with:
python-version: '3.11.8'
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y pkg-config libhdf5-dev build-essential
- name: Set up Python environment
run: python3.11 -m venv xian_venv
- name: Activate virtual environment and install dependencies
run: |
source xian_venv/bin/activate
pip install -e .
pip install pytest # Install pytest explicitly
- name: Run tests
run: |
source xian_venv/bin/activate
pytest tests