Bump wheel from 0.37.0 to 0.38.1 (#8) #28
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: CI | |
on: | |
push: | |
branches: | |
- main | |
- release/* | |
tags: | |
- v* | |
pull_request: | |
branches: | |
- main | |
- release/* | |
jobs: | |
Linux: | |
name: Build Linux | |
strategy: | |
matrix: | |
python.version: | |
- 3.9 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
- uses: actions/checkout@v2 | |
- name: Setup Python ${{ matrix.python.version }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python.version }} | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: pip3 install -r requirements.txt | |
- name: Lint | |
run: python -m flake8 . | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 | |
- name: Test | |
run: python -m pytest | |
WindowsBuild: | |
name: Build Windows | |
strategy: | |
matrix: | |
python.version: | |
- 3.9 | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python ${{ matrix.python.version }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python.version }} | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: pip3 install -r requirements.txt | |
- name: Build exe | |
run: pyinstaller -n datagalaxy-toolbox --onefile --console toolbox/__main__.py | |
- name: Check datagalaxy-toolbox.exe | |
run: dist\datagalaxy-toolbox.exe --help | |
- name: Publish datagalaxy-toolbox | |
uses: actions/upload-artifact@v2 | |
with: | |
path: ${{ github.workspace }}/dist/datagalaxy-toolbox.exe | |
name: datagalaxy-toolbox | |
if: (success() && startsWith(github.ref, 'refs/tags/v')) | |
WindowsRun: | |
name: Run exe on windows | |
runs-on: windows-2022 | |
needs: | |
- WindowsBuild | |
if: (success() && startsWith(github.ref, 'refs/tags/v')) | |
steps: | |
- name: Download datagalaxy-toolbox | |
uses: actions/download-artifact@v2 | |
with: | |
name: datagalaxy-toolbox | |
- name: Test | |
run: ./datagalaxy-toolbox.exe --help | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: datagalaxy-toolbox.exe |