Skip to content

Commit

Permalink
Merge pull request #77 from marcinpraczko/76-add-new-version-of-pytho…
Browse files Browse the repository at this point in the history
…n-fo-github-actions

Add updated README and python 3.12 to GitHub Actions.
Add initial tmuxp configuration
  • Loading branch information
marcinpraczko authored Apr 12, 2024
2 parents d38b0e1 + 2b78e0f commit ecc4513
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/molecule-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
Expand All @@ -20,7 +20,7 @@ jobs:
- name: Install dependencies
run: |
pwd
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade pip setuptools wheel
python3 -m pip install -r requirements.txt
- name: Details about molecule
Expand Down
1 change: 1 addition & 0 deletions .tmuxp/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
run_tmuxp.sh
16 changes: 16 additions & 0 deletions .tmuxp/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
====================
Quick HELP for tmuxp
====================

References
==========

- `tmuxp <https://tmuxp.git-pull.com/>`_
- `tmux-python/tmuxp on GitHub <https://github.com/tmux-python/tmuxp>`_

Other details
=============

- Read this file: ``cat README.rst`` in directory: ``.tmuxp``
- Kill full tmux session: ``tmux kill-session -t ansible-goss-install``

1 change: 1 addition & 0 deletions .tmuxp/VERSION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.1.0
44 changes: 44 additions & 0 deletions .tmuxp/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---

session_name: ansible-goss-install
start_directory: "${MPOSL_PROJECT_ROOT}"
shell_command_before:
- '[ -f venv/bin/activate ] && source venv/bin/activate && reset'
windows:
- window_name: Main
layout: even-vertical
options:
automatic-rename: 'off'
main-pane-height: 20
panes:
- focus: true
shell_command:
- clear
- shell_command:
- clear

- window_name: Help
layout: even-horizontal
options:
automatic-rename: 'off'
main-pane-height: 45
panes:
- focus: true
shell_command:
- clear
- cat README.md

- window_name: Help-Tmuxp
start_directory: "${MPOSL_PROJECT_ROOT}/.tmuxp/"
layout: even-horizontal
options:
automatic-rename: 'off'
main-pane-height: 45
panes:
- focus: true
shell_command:
- clear
- cat VERSION.rst
- shell_command:
- clear
- cat README.rst
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@

# Ansible-goss-install

| Ansible Role Version | Goss Version |
| -------------------- | ------------ |
| 0.1.8 | 0.4.4 |

- Ansible Role Version: `0.1.8`
- Goss Version: `0.4.6`

## Goss resources

Expand Down Expand Up @@ -80,19 +78,22 @@ Following example will install ``goss`` in system: ``/usr/local/bin``:
## Testing
### There is GitHub Action for testing
- [Molecule Test](https://github.com/marcinpraczko/ansible-goss-install/actions/workflows/molecule-test.yml)
### Locally
This role can be tested via ``molecule`` with commands (Following commands will install it):
```bash
make python3-create-venv
make test-molecule # WARNING: This is using default driver - which is ansible,
# this means that testing role equals running it on your machine like installation.
make test-molecule # WARNING: Uses default Ansible driver, tests run on local machine as if installing.
```

For more detail about molecule, please visit:

- [Molecule](https://molecule.readthedocs.io/en/latest/)
- [Molecule CI](https://ansible.readthedocs.io/projects/molecule/ci/)
- [Ansible about molecule](https://ansible.readthedocs.io/projects/molecule/getting-started/)

## Resources

- https://ansible.readthedocs.io/projects/molecule/ci/
- https://ansible.readthedocs.io/projects/molecule/getting-started/

0 comments on commit ecc4513

Please sign in to comment.