-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3083 from ansible/devel
apply recent changes from devel * add alisonlhart to namespace requests * Merge pull request #2784 from ansible/add-alison * Handle role repositories that do not have a provider_namespace.namesp… * Initial CI implementation with github actions (#3065)
- Loading branch information
Showing
6 changed files
with
110 additions
and
11 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
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,39 @@ | ||
--- | ||
name: Lint | ||
on: | ||
pull_request: | ||
branches: | ||
- '**' | ||
paths-ignore: | ||
- 'docs/**' | ||
push: | ||
branches: | ||
- '**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
linters: | ||
|
||
# https://github.com/actions/setup-python/issues/355#issuecomment-1335042510 | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.6" | ||
|
||
# https://stackoverflow.com/a/72611356 | ||
- name: downgrade setuptools | ||
run: pip install setuptools~=57.5.0 | ||
|
||
- name: install requirements | ||
run: pip install -r requirements/dev-requirements.txt | ||
|
||
- name: python lint | ||
run: make test/flake8 | ||
|
||
- name: yaml lint | ||
run: make test/yamllint |
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,45 @@ | ||
--- | ||
name: Unit | ||
on: | ||
pull_request: | ||
branches: | ||
- '**' | ||
paths-ignore: | ||
- 'docs/**' | ||
push: | ||
branches: | ||
- '**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
pytest: | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.10" | ||
|
||
# - name: Update apt | ||
# run: sudo apt -y update | ||
|
||
# - name: Install LDAP requirements | ||
# run: sudo apt-get install -y libsasl2-dev python3 libldap2-dev libssl-dev build-essential | ||
|
||
- name: Install docker-compose | ||
run: pip3 install --upgrade docker-compose | ||
|
||
- name: build the image | ||
run: make dev/build | ||
|
||
- name: start the containers | ||
run: make dev/up_detached | ||
|
||
- name: wait for stack to settle | ||
run: sleep 360 | ||
|
||
- name: start the tests | ||
run: make dev/test |
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 |
---|---|---|
|
@@ -6,3 +6,4 @@ ignore: | | |
|
||
rules: | ||
line-length: disable | ||
truthy: disable |
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