-
Notifications
You must be signed in to change notification settings - Fork 28
109 lines (108 loc) · 3.04 KB
/
tests.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: Run Python Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-macos:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: "macos-latest"
steps:
- name: Install md5sha1sum
run: brew install md5sha1sum
- uses: actions/checkout@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.5.1
virtualenvs-in-project: true
- name: Install dependencies
run: poetry install --no-interaction --no-root
- name: Install library
run: poetry install --no-interaction
- name: Run tests
run: poetry run pytest
- uses: psf/black@stable
with:
options: "--check --verbose"
src: "./"
version: "23.3"
- uses: isort/isort-action@v1
build-linux:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: "ubuntu-latest"
steps:
- name: Install libxml2
run: |
sudo apt-get update
sudo apt-get install libxml2 libxml2-dev libxslt1-dev
- uses: actions/checkout@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.5.1
virtualenvs-in-project: true
- name: Install dependencies
run: poetry install --no-interaction --no-root
- name: Install library
run: poetry install --no-interaction
- name: Run tests
run: poetry run pytest
- uses: psf/black@stable
with:
options: "--check --verbose"
src: "./"
version: "23.3"
- uses: isort/isort-action@v1
build-windows:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: "windows-latest"
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.5.1
virtualenvs-in-project: true
- name: Install dependencies
run: poetry install --no-interaction --no-root
- name: Install library
run: poetry install --no-interaction
- name: Run tests
run: poetry run pytest
- uses: psf/black@stable
with:
options: "--check --verbose"
src: "./"
version: "23.3"
# - uses: isort/isort-action@v1