Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NOTASK: use pipenv based github actions #23

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- run: pip install ansible-core==2.14.2
- run: ansible-galaxy collection build
- run: ansible-galaxy collection publish --api-key ${{ secrets.GALAXY_API_KEY }} damex-systemd-*.tar.gz
python-version: "3.11"
- run: pip install --user pipenv
- run: make pipenv
- run: pipenv run ansible-galaxy collection build
- run: pipenv run ansible-galaxy collection publish --api-key ${{ secrets.GALAXY_API_KEY }} damex-digitalocean-*.tar.gz
14 changes: 10 additions & 4 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ansible/ansible-lint-action@main
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- run: pip install --user pipenv
- run: make pipenv
- run: pipenv run ansible-lint
yamllint:
name: yamllint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- run: pip install yamllint
- run: yamllint -s .
python-version: "3.11"
- run: pip install --user pipenv
- run: make pipenv
- run: pipenv run yamllint -s .
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pipenv:
pipenv install
14 changes: 14 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]

[packages]
ansible-core = "==2.16.5"
ansible-lint = "==24.2.2"
yamllint = "==1.35.1"

[requires]
python_version = "3.11"
Loading
Loading