-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (39 loc) · 1.03 KB
/
python-app.yml
File metadata and controls
43 lines (39 loc) · 1.03 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
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python application
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt install -y python3-pip python3-clang-20
- name: Install package
run: |
pip install .
pip uninstall -y clang
- name: Run Unit Tests
run: |
python -m unittest
- name: Run Integration tests
run: |
python integrated/run_tests.py
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt install -y python3-pip python3-clang-20
pip3 install ruff
- name: lint
run: |
ruff check