Fix black again #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |