-
Notifications
You must be signed in to change notification settings - Fork 27
46 lines (42 loc) · 1.32 KB
/
main.yml
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
name: CI
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: 3.13
- name: Setup and install tools
run: |
python -m pip install --upgrade ruff
- name: format check
run: python -m ruff format --check
- name: lint check
run: python -m ruff check
test:
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.13]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Setup build and test environment
run: python -m pip install --upgrade pip build pytest pytest-mock
- name: Build package
run: python -m build
- name: Install package
run: python -m pip install --pre dist/pandoc_plantuml_filter-*.whl
- name: run unit tests
run: python -m pytest tests/test_unit.py
- name: install dependencies for integration tests
run: sudo apt update && sudo apt install -y pandoc plantuml
- name: run integration tests
run: python -m pytest tests/test_integration.py