add ubuntu test build

This commit is contained in:
Milan Kolar 2021-04-05 22:36:11 +02:00
parent 2859aca17c
commit e1a37dcd6a
2 changed files with 29 additions and 3 deletions

View file

@ -1,23 +1,26 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: Build Python Package
name: Test Build
on:
pull_request:
branches: [develop]
jobs:
build:
Windows-latest:
runs-on: windows-latest
strategy:
matrix:
python-version: [3.7, 3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.7'
python-version: ${{ matrix.python-version }}
- name: Install Venv
shell: pwsh
run: |
@ -27,3 +30,25 @@ jobs:
shell: pwsh
run: |
./tools/build.ps1
Ubuntu-latest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Venv
run: |
apt-get install -y --no-install-recommends zlib
./tools/create_env.sh
- name: Build
run: |
./tools/build.sh

View file

@ -172,6 +172,7 @@ main () {
poetry run python -m pip install --upgrade pip
poetry run pip install --force-reinstall setuptools
poetry run pip install --force-reinstall wheel
poetry run python -m pip install --force-reinstall pip
}
main -3