Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
komark06 committed Feb 1, 2025
2 parents 919579c + 8f0cce0 commit a741648
Show file tree
Hide file tree
Showing 18 changed files with 1,284 additions and 206 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Pre-commit Check

on:
pull_request:
branches:
- "**"
push:
branches:
- develop

jobs:
pre-commit-check:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Install pre-commit
run: |
pip install --upgrade pip
pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files
38 changes: 38 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Unit test

on:
pull_request:
branches:
- main
push:
branches:
- develop

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
tests:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
pip install pytest
- name: Run tests
run: pytest
36 changes: 36 additions & 0 deletions .github/workflows/release-on-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release on New Tag

on:
push:
branches:
- main
tags:
- "*"

jobs:
build-and-release:
runs-on: windows-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Install dependencies
run: |
pip install --upgrade pip
pip install pyinstaller
pip install -r requirements.txt
- name: Build executable with PyInstaller
run: |
pyinstaller --onefile --windowed src/main.py
- name: Release
uses: softprops/action-gh-release@v2
with:
files: dist\main.exe
1 change: 0 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ name = "pypi"

[packages]
openpyxl = "*"
sqlalchemy = "*"
pytest = "*"

[dev-packages]
Expand Down
164 changes: 22 additions & 142 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added requirements.txt
Binary file not shown.
7 changes: 3 additions & 4 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ line-length = 79
select = [
# pycodestyle
"E",
"W",
# Pyflakes
"F",
# pyupgrade
Expand All @@ -17,7 +18,5 @@ select = [
"I",
]

[format]
docstring-code-format = true
docstring-code-line-length = 72

[pycodestyle]
max-doc-length = 72
Loading

0 comments on commit a741648

Please sign in to comment.