Skip to content

Merge pull request #204 from refraction-ray/test-exceptions-145223362… #23

Merge pull request #204 from refraction-ray/test-exceptions-145223362…

Merge pull request #204 from refraction-ray/test-exceptions-145223362… #23

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: |
pip install black pylint
- name: Black check
run: black --check xalpha/ tests/
- name: Pylint check
run: pylint xalpha/
test:
needs: lint
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.12']
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 -r requirements.txt
pip install pytest pytest-cov
pip install -e .
- name: Run tests (non-local)
run: |
pytest -m "not local" --cov=xalpha -svv tests/