kopia lustrzana https://github.com/NanoVNA-Saver/nanovna-saver
commit
ea1abdb489
|
@ -10,7 +10,8 @@ on:
|
|||
- development
|
||||
|
||||
jobs:
|
||||
build:
|
||||
coverage:
|
||||
name: Coverage
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
|
@ -35,3 +36,30 @@ jobs:
|
|||
run: |
|
||||
pip install pytest-cov
|
||||
pytest --cov=NanoVNASaver
|
||||
|
||||
release:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
python-version: [3.7, ]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
pip install PyInstaller
|
||||
- name: Build binary
|
||||
pyinstall nanovna-saver.py
|
||||
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: NanoVNASaver
|
||||
path: dist/nanovna-saver
|
Ładowanie…
Reference in New Issue