forked from fossology/fossology-python
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 766 Bytes
/
Copy pathstaticchecks.yml
File metadata and controls
34 lines (29 loc) · 766 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: Static Checks
on:
pull_request:
jobs:
test:
name: Static Checks
runs-on: ubuntu-latest
strategy:
matrix:
container:
- 'python:3.11-slim'
- 'python:3.12-slim'
container: ${{ matrix.container }}
steps:
- uses: actions/checkout@v1
- name: Install host dependencies
run: |
apt-get -qq update
apt-get install -qq gcc git
rm -rf /var/lib/apt/lists/*
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install --with=dev
- name: Lint using ruff
run: poetry run ruff check
- name: Check types with mypy
run: poetry run poe types