Merge pull request #60 from drscholly/core/better_links #171
Workflow file for this run
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@v3 | |
- uses: actions/checkout@v4 | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: pip3 install -r requirements.txt | |
- name: Lint | |
run: python -m flake8 . | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 | |
- name: Test | |
run: python -m pytest | |
WindowsBuild: | |
name: Build Windows | |
strategy: | |
matrix: | |
python-version: ["3.9"] | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: actions/checkout@v4 | |
- 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@v3 | |
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@v3 | |
with: | |
name: datagalaxy-toolbox | |
- name: Test | |
run: ./datagalaxy-toolbox.exe --help | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: datagalaxy-toolbox.exe |