Skip to content

Setting up CI

Setting up CI #10

Workflow file for this run

name: Build and Test
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- 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