-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework the Github Actions workflows.
* Create a composite action for setting up the system. * Expand `check-install.yml` to check that installing works from all of; - GitHub - Checked out locally with `python setup.py install` - Checked out locally with `pip install -e .` - Building and then installing wheels. * Remove `wheel.yml` as covered by `check-install.yml`'s building and then installing wheels. Signed-off-by: Tim 'mithro' Ansell <[email protected]>
- Loading branch information
Showing
8 changed files
with
262 additions
and
228 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Functionality | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
|
||
Functionality: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
antlr_runtime_type: [static, shared] | ||
include: | ||
- { python-version: 3.5, TOXENV: py35 } | ||
- { python-version: 3.6, TOXENV: py36 } | ||
- { python-version: 3.7, TOXENV: py37 } | ||
- { python-version: 3.8, TOXENV: py38 } | ||
- { python-version: 3.9, TOXENV: py39 } | ||
fail-fast: false | ||
|
||
name: Functionality on Python ${{ matrix.python-version }} (with ${{ matrix.antlr_runtime_type}} antlr) | ||
|
||
steps: | ||
- run: | | ||
echo "${{ github.repository }}/.github/workflows/system-setup@${{ github.sha }}" | ||
- uses: mithro/fasm/.github/workflows/system-setup@setupcfg | ||
with: | ||
development-tools: true | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Run Tests | ||
run: | | ||
ANTLR4_RUNTIME_TYPE=${{ matrix.antlr_runtime_type }} tox -e ${{ matrix.TOXENV }} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Style | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
|
||
Style: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: '${{ github.repository }}/.github/workflows/system-setup@${{ github.sha }}' | ||
with: | ||
development-tools: true | ||
|
||
- name: Check license headers | ||
run: make check-license | ||
|
||
- name: Python style check | ||
run: | | ||
make format lint | ||
test $(git status --porcelain | wc -l) -eq 0 || { git diff; false; } | ||
- name: Python script checks | ||
run: make check-python-scripts | ||
|
||
- name: C++ style check | ||
run: | | ||
make format-cpp | ||
test $(git status --porcelain | wc -l) -eq 0 || { git diff; false; } |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: 🧰 Checkout | ||
description: "Checkout the git repository correctly" | ||
|
||
runs: | ||
using: "composite" | ||
|
||
steps: | ||
- name: 🧰 Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
# Always clone the full depth so git-describe works. | ||
fetch-depth: 0 | ||
submodules: true |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.