Skip to content

Merge pull request #1 from sashgorokhov/version-bump #5

Merge pull request #1 from sashgorokhov/version-bump

Merge pull request #1 from sashgorokhov/version-bump #5

name: Test and build
on:
push:
paths-ignore:
- README.md
- LICENSE
- .gitignore
permissions:
contents: write
jobs:
test_and_build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v6
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v6
with:
python-version-file: pyproject.toml
cache: poetry
- run: poetry install --with dev
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Run pre-commit
run: |
poetry run pre-commit run -a --show-diff-on-failure --color=always
- name: Test
run: |
poetry run pytest -svvv tests/
- name: Build .exe
if: github.ref == 'refs/heads/main'
run: |
poetry run pyinstaller -y -F --clean --log-level INFO mavlog2csv.py
- uses: marvinpinto/action-automatic-releases@latest
if: github.ref == 'refs/heads/main'
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: latest
title: Latest build
files: |
dist/mavlog2csv*