-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (39 loc) · 1.07 KB
/
test_and_build.yml
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
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@v4
- name: Install poetry
run: pipx install poetry
- uses: actions/[email protected]
with:
python-version-file: pyproject.toml
cache: poetry
- run: poetry install --with dev
- name: Run pre-commit
run: |
poetry run pre-commit run -a --show-diff-on-failure
- 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*