feat: Initial application #17
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
name: Integration tests | |
on: | |
pull_request: | |
jobs: | |
integration-tests: | |
name: Integration test | |
runs-on: [self-hosted, X64, edge, jammy] | |
strategy: | |
matrix: | |
image: [jammy, noble] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: canonical/[email protected] | |
- name: Setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.py }} | |
# need to run in sudo mode due to chroot | |
- name: Install tox | |
run: sudo python -m pip install tox-gh>=1.2 | |
- name: Run integration tests | |
run: sudo $(which tox) -e integration -- --image=${{ matrix.image }} | |
- name: Setup tmate session | |
if: ${{ failure() }} | |
uses: canonical/action-tmate@main |