Skip to content

Test 3.12

Test 3.12 #183

Workflow file for this run

name: Test
on:
push:
branches: [main]
paths-ignore:
- 'docs/**'
pull_request:
branches: [main]
paths-ignore:
- 'docs/**'
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v3
- name: Cache Setup
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade pip setuptools wheel
pip install .
- name: Lint with ruff
run: |
pip install ruff
ruff .
- name: Lint with black
run: |
pip install black
black --check cerebro/
black --check tests/
- name: Test with pytest
run: |
pip install pytest pytest-mock pytest-asyncio pytest-cov
pytest
env:
OBSERVATORY: APO
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml