3 on: [push, pull_request]
11 uses: actions/checkout@v2
12 # Repository checked out under $GITHUB_WORKSPACE
14 - name: Install Dependencies
17 sudo apt-get install \
22 run: make prefix="build" install
24 - name: Upload Artifact
25 uses: actions/upload-artifact@v2
27 name: git-cola-run${{github.run_number}}-${{runner.os}}
32 runs-on: ubuntu-latest
35 uses: actions/checkout@v2
36 # Repository checked out under $GITHUB_WORKSPACE
38 - name: Install Dependencies
41 sudo apt-get install \
50 # Runtime dependencies (required)
51 sudo apt-get install \
54 # Runtime dependencies (optional)
55 sudo apt-get install \
57 # Development environment
59 # These requirements are already satisfied by python3-send2trash.
60 # make requirements-optional
62 - name: Build Translations
65 - name: Run Unit Tests
67 git config --global user.name "Git Cola"
68 git config --global user.email git-cola@localhost
72 run: make pylint color=0
74 - name: Check Code Style
77 - name: Check Code Formatting
78 # For strict adherence to formatting, run 'black' with --check
83 runs-on: windows-latest
86 uses: actions/checkout@v2
87 # Repository checked out under $GITHUB_WORKSPACE
90 uses: actions/setup-python@v2
96 uses: actions/cache@v2
98 path: ~\AppData\Local\pip\Cache
99 key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements/requirements*.txt') }}
101 - name: Install Dependencies
105 pip install --requirement requirements/requirements-dev.txt
106 pip install --requirement requirements/requirements-maint.txt
108 # Based on: contrib/win32/run-pynsist.sh
109 - name: Build Installer
113 make htmldir="$PWD/share/doc/git-cola/html" install-doc
115 rm -r share/doc/git-cola/html
117 # Rename executable output
119 mv git-cola*.exe git-cola-run${{github.run_number}}.exe
121 - name: Upload Artifact
122 uses: actions/upload-artifact@v2
124 name: git-cola-run${{github.run_number}}-${{runner.os}}
125 path: build\nsis\git-cola*.exe
128 name: 'Build / darwin'
129 runs-on: macos-latest
132 uses: actions/checkout@v2
133 # Repository checked out under $GITHUB_WORKSPACE
135 - name: Install Dependencies
137 brew install sphinx-doc
138 brew install git-cola
144 PYTHON=$(brew --prefix python3)/bin/python3 \
145 PYTHON_CONFIG=$(brew --prefix python3)/bin/python3-config \
146 SPHINXBUILD=$(brew --prefix sphinx-doc)/bin/sphinx-build \
148 mv git-cola.app build/
150 - name: Upload Artifact
151 uses: actions/upload-artifact@v2
153 name: git-cola-run${{github.run_number}}-${{runner.os}}