rename git-annex role to git_annex #2332
This file contains hidden or 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
| name: CI | |
| on: [push, pull_request] | |
| env: | |
| COLORTERM: 'yes' | |
| TERM: 'xterm-256color' | |
| PYTEST_ADDOPTS: '--color=yes' | |
| jobs: | |
| ansible-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: Install ansible-lint | |
| run: pip install ansible-lint ansible | |
| - name: Run tests | |
| run: | | |
| ansible-lint playbooks/ | |
| ansible-lint roles/ | |
| ansible-lint pipelines/ | |
| molecule: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: Install molecule | |
| run: pip install 'molecule>=6' ansible | |
| - name: Run tests | |
| run: | | |
| for roledir in roles/*/molecule; do | |
| pushd $(dirname $roledir) | |
| molecule test | |
| popd | |
| done | |
| vagrant: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| ruby: | |
| - '2.7' | |
| - '3.0' | |
| - '3.1' | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| bundler-cache: true | |
| working-directory: vagrant | |
| - name: Run tests | |
| run: bundle exec rake | |
| working-directory: vagrant |