-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1007 Bytes
/
test.yaml
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
name: Test
on: push
jobs:
Test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
defaults:
run:
shell: bash
name: ${{ matrix.os }} with py${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python ${{ matrix.python-version }}
uses: bigladder/github-actions/setup-python-poetry@main
with:
python-version: ${{ matrix.python-version }}
- name: Lint with Pylint
run: |
poetry run pylint atheneum #'${{github.workspace}}
poetry run pylint test/*.py
continue-on-error: true
- name: Static type checking
run: |
poetry run mypy atheneum #'${{github.workspace}}
continue-on-error: true
- name: Test
run: |
source $VENV
poetry run pytest