-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (35 loc) · 898 Bytes
/
Copy pathci.yml
File metadata and controls
39 lines (35 loc) · 898 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
38
39
name: CI
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DavidAnson/markdownlint-cli2-action@v19
with:
globs: '**/*.md'
continue-on-error: true
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -e .
pip install pytest pytest-cov
- run: pytest tests/ --cov=xmemory --cov-report=xml --cov-report=term || true
- uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
fail_ci_if_error: false