-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (39 loc) · 995 Bytes
/
test.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
name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
# Note: this project uses some macOS-specific tools like `qlmanage`, so
# the tests need to run on macOS.
#
# This is different from my other Python projects, which usually run on
# `ubuntu-latest`.
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: 'pip'
cache-dependency-path: 'dev_requirements.txt'
- name: Install dependencies
run: |
brew install ffmpeg
.github/install-github-bin alexwlchan/dominant_colours
pip install -r dev_requirements.txt
- name: Run linting
run: |
ruff check .
ruff format --check .
- name: Check types
run: mypy src tests
- name: Run tests
run: |
coverage run -m pytest tests
coverage report