-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (53 loc) · 1.56 KB
/
Copy pathci.yml
File metadata and controls
54 lines (53 loc) · 1.56 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: CI
on:
push:
pull_request:
jobs:
ci:
strategy:
fail-fast: true
matrix:
python-version: ["3.11", "3.14"]
os: [ubuntu-22.04] #, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade poetry
- name: Test build
run: |
poetry config virtualenvs.in-project true
poetry install
. .venv/bin/activate
sentieon-cli -h
formatting:
strategy:
fail-fast: true
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v5
with:
python-version: "3.14"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade poetry
poetry install --with dev
- name: Install the project dependencies
run: poetry install
- name: Run black formatter
run: poetry run black --check --exclude '__pycache__|scripts|sentieon_cli/archive.py' --line-length 79 sentieon_cli
- name: Run mypy
run: poetry run mypy sentieon_cli --exclude scripts
- name: Run flake8
run: poetry run flake8 .
- name: Run the automated tests
run: poetry run pytest -v
- name: Run doct tests
run: poetry run pytest --doctest-modules