forked from int-brain-lab/bpod-core
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (53 loc) · 1.42 KB
/
main.yaml
File metadata and controls
57 lines (53 loc) · 1.42 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
55
56
57
name: unit tests
on:
workflow_dispatch:
pull_request:
paths-ignore:
- 'docs/**'
- '**/*.md'
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v3
with:
version-file: 'pyproject.toml'
args: 'check --output-format=github'
- run: 'ruff format --check --diff'
tests:
name: python ${{ matrix.python-version }} on ${{ matrix.os }}
needs: ruff
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ matrix.python-version }}
cache: true
- name: install dependencies
run: pdm install -dG test -dG typing
- name: mypy
run: pdm run mypy
- name: pytest
run: pdm run pytest
- name: coveralls.io
uses: coverallsapp/github-action@v2
with:
flag-name: ${{ matrix.python-version }}, ${{ matrix.os }}
parallel: true
file: coverage.xml
compare-ref: main
finish:
needs: tests
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true