Skip to content

Fix versions

Fix versions #16

Workflow file for this run

name: Build and Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8.11', '3.10.12', '3.12.0-alpha.7']
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- 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