-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (34 loc) · 857 Bytes
/
test.yml
File metadata and controls
34 lines (34 loc) · 857 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
name: Test
on:
push:
branches:
- '**'
- '!master'
jobs:
run-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.10.18, 3.11, 3.12]
steps:
- uses: actions/checkout@v2
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Check OpenSSL Version
run: openssl version
- name: Setup Poetry
uses: abatilo/actions-poetry@v2.1.2
with:
poetry-version: 1.4.2
- name: Install Dependencies
run: |
poetry install
- name: Run Lints
run: |
poetry run black -v --check .
poetry run flake8 -v --ignore=E501,W503,E722
- name: Run Tests
run: |
poetry run pytest -v