update package versions #38
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: Python package | |
on: [push] | |
jobs: | |
Linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install and set up Poetry | |
run: | | |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python | |
source $HOME/.poetry/env | |
poetry config virtualenvs.in-project true | |
- name: Set up cache | |
uses: actions/cache@v2 | |
with: | |
path: .venv | |
key: venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }} | |
- name: Install dependencies | |
run: | | |
source $HOME/.poetry/env | |
poetry install | |
- name: Test | |
run: | | |
source $HOME/.poetry/env | |
poetry run test | |
- name: Build | |
run: | | |
source $HOME/.poetry/env | |
poetry run pyinstaller --onefile --windowed --hidden-import='PIL._tkinter_finder' inbac/inbac.py | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: inbac-${{ runner.os }} | |
path: dist | |
Windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install and set up Poetry | |
run: | | |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python | |
$env:Path += ";$env:Userprofile\.poetry\bin" | |
poetry config virtualenvs.in-project true | |
- name: Install dependencies | |
run: | | |
$env:Path += ";$env:Userprofile\.poetry\bin" | |
poetry install | |
- name: Test | |
run: | | |
$env:Path += ";$env:Userprofile\.poetry\bin" | |
poetry run test | |
- name: Build | |
run: | | |
$env:Path += ";$env:Userprofile\.poetry\bin" | |
poetry run pyinstaller --onefile --windowed --hidden-import='PIL._tkinter_finder' inbac\inbac.py | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: inbac-${{ runner.os }} | |
path: dist | |
MacOS: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install and set up Poetry | |
run: | | |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python | |
source $HOME/.poetry/env | |
poetry config virtualenvs.in-project true | |
- name: Set up cache | |
uses: actions/cache@v2 | |
with: | |
path: .venv | |
key: venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }} | |
- name: Install dependencies | |
run: | | |
source $HOME/.poetry/env | |
poetry install | |
- name: Test | |
run: | | |
source $HOME/.poetry/env | |
poetry run test | |
- name: Build | |
run: | | |
source $HOME/.poetry/env | |
poetry run pyinstaller --onefile --windowed --hidden-import='PIL._tkinter_finder' inbac/inbac.py | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: inbac-${{ runner.os }} | |
path: dist |