-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (52 loc) · 1.78 KB
/
main.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
name: "main"
on: ["push", "workflow_dispatch"]
jobs:
pyright:
runs-on: "ubuntu-latest"
steps:
- uses: "blakeNaccarato/[email protected]"
with:
python-version: "3.11"
- run: pyright
ruff:
runs-on: "ubuntu-latest"
steps:
- uses: "blakeNaccarato/[email protected]"
with:
python-version: "3.11"
- run: "ruff --no-fix --output-format github ."
pytest:
runs-on: "ubuntu-latest"
steps:
- uses: "blakeNaccarato/[email protected]"
with:
python-version: "3.11"
# * -------------------------------------------------------------------------- * #
- name: Install PySide6 system dependencies
run: |
# https://askubuntu.com/questions/900285/libegl-so-1-is-not-a-symbolic-link
sudo apt update
sudo apt install libegl1
# * -------------------------------------------------------------------------- * #
# ! Need to specify `cov-config` as below.
# ! See https://github.com/pytest-dev/pytest-cov/issues/479#issuecomment-1247444988
- run: "pytest --cov --cov-config=pyproject.toml"
- uses: "codecov/[email protected]"
fawltydeps:
runs-on: "ubuntu-latest"
steps:
- uses: "blakeNaccarato/[email protected]"
with:
python-version: "3.11"
- run: "fawltydeps"
bump_project:
needs: ["pyright", "ruff", "pytest", "fawltydeps"]
runs-on: "ubuntu-latest"
steps:
- uses: "blakeNaccarato/[email protected]"
with:
python-version: "3.11"
install-project: false
- uses: "stefanzweifel/[email protected]"
with:
commit_message: "Update project."