-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce Action to run
install_requirement.py
- Loading branch information
Showing
2 changed files
with
68 additions
and
0 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 |
---|---|---|
|
@@ -184,6 +184,74 @@ jobs: | |
repo: toga | ||
build-subdir: android | ||
|
||
test-install-requirements: | ||
name: Install Requirements | ||
needs: pre-commit | ||
runs-on: ${{ matrix.runner-os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
runner-os: [ macos-latest, windows-latest, ubuntu-latest ] | ||
steps: | ||
- name: Checkout beeware/briefcase | ||
uses: actions/[email protected] | ||
with: | ||
repository: beeware/briefcase | ||
|
||
- name: Checkout beeware/briefcase to path | ||
uses: actions/[email protected] | ||
with: | ||
repository: beeware/briefcase | ||
path: repos/briefcase | ||
|
||
- name: Checkout beeware/.github | ||
uses: actions/[email protected] | ||
with: | ||
repository: beeware/.github | ||
path: repos/.github-beeware | ||
|
||
- name: Set up Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: Test Install Requirements with Path | ||
uses: ./repos/.github-beeware/.github/actions/install-requirement | ||
with: | ||
requirements: "pre-commit tox" | ||
extra: "dev" | ||
project-root: "repos/briefcase" | ||
|
||
- name: Test Install Requirements with Extra | ||
uses: ./repos/.github-beeware/.github/actions/install-requirement | ||
with: | ||
requirements: "coverage" | ||
extra: "dev" | ||
|
||
- name: Test Install Requirements | ||
uses: ./repos/.github-beeware/.github/actions/install-requirement | ||
with: | ||
requirements: "cookiecutter" | ||
|
||
- name: Verify Requirements Installed | ||
run: | | ||
if ! python -m pip list | grep tox; then | ||
echo '::error::Failed to install tox' | ||
exit 1 | ||
fi | ||
if ! python -m pip list | grep pre-commit; then | ||
echo '::error::Failed to install pre-commit' | ||
exit 1 | ||
fi | ||
if ! python -m pip list | grep coverage; then | ||
echo '::error::Failed to install coverage' | ||
exit 1 | ||
fi | ||
if ! python -m pip list | grep cookiecutter; then | ||
echo '::error::Failed to install cookiecutter' | ||
exit 1 | ||
fi | ||
test-verify-projects-briefcase: | ||
name: Verify Project | ||
needs: [ pre-commit, test-package-python ] | ||
|
Binary file not shown.