Skip to content

Commit a110963

Browse files
Merge pull request #52 from HenestrosaDev/ci
Add `Code Quality` workflow
2 parents fccdfab + 4fd00b1 commit a110963

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

.github/workflows/code-quality.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Code Quality
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "*"
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
python-version: ["3.10"]
17+
steps:
18+
- uses: actions/checkout@master
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
cache: 'pip'
24+
- name: Install PortAudio to install PyAudio
25+
run: |
26+
sudo apt-get update
27+
sudo apt-get install python3-pyaudio portaudio19-dev python3-dev
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
pip install -r requirements.txt -r requirements-dev.txt
32+
- name: Run pre-commit
33+
run: |
34+
pre-commit run --all-files --show-diff-on-failure

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -959,6 +959,7 @@ If you are using an API key that was created before you funded your account for
959959
- [x] Add `appearance_mode` to `config.ini`.
960960
- [x] Add support for **Whisper's API** ([#42](https://github.com/HenestrosaDev/audiotext/discussions/42)).
961961
- [x] Add pre-commit configuration for using `ruff` and `mypy`.
962+
- [x] Set up a CI pipeline to apply the pre-commit hooks.
962963
- [ ] Change the `Generate transcription` button to `Cancel transcription` when a transcription is in progress.
963964
- [ ] Generate executables for macOS and Linux.
964965
- [ ] Add tests.

requirements.txt

-270 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)