Skip to content

Fix black again

Fix black again #14

Workflow file for this run

name: Build and Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Format code with black
uses: psf/black@stable
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10.12
- name: Install dependencies
run: pip install -r requirements.txt
- name: Install PyInstaller
run: pip install pyinstaller
- name: Build with PyInstaller
run: pyinstaller --onefile pioneer_uploader.py
- name: Install pytest
run: pip install pytest
- name: Run tests
run:
export PYTHONPATH=$PYTHONPATH:$GITHUB_WORKSPACE
pytest
- name: Publish artifact
if: github.event_name == 'pull_request'
uses: actions/upload-artifact@v2
with:
name: pioneer-uploader.exe
path: dist