-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 895 Bytes
/
Copy pathci.yml
File metadata and controls
37 lines (32 loc) · 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: CI
on:
push:
branches: [main]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v6
with:
python-version: "3.12"
- uses: astral-sh/setup-uv@v10.0.0
with:
enable-cache: true
- name: Install
run: uv sync --all-extras --no-editable
- name: Lint
run: .venv/bin/ruff check .
- name: Test
shell: bash
run: |
SITE_PACKAGES=$(.venv/bin/python -c 'import site; print(site.getsitepackages()[0])')
LD_LIBRARY_PATH="$SITE_PACKAGES${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" \
.venv/bin/pytest --cov=chained_eclipse --cov-report=term-missing