Feat/app #60
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: | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
integration-tests-arm: | ||
name: Integration test (ARM64) | ||
runs-on: [self-hosted, ARM64] | ||
strategy: | ||
matrix: | ||
image: [jammy, noble] | ||
py: "3.10" | ||
Check failure on line 17 in .github/workflows/integration_test.yaml GitHub Actions / Integration testsInvalid workflow file
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: canonical/[email protected] | ||
- name: Setup python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.py }} | ||
- name: Install tox | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install pipx -y | ||
pipx ensurepath | ||
pipx install tox | ||
# need to run in sudo mode due to chroot | ||
- name: Run integration tests | ||
run: sudo $(which tox) -e integration -- --image=${{ matrix.image }} ${{ secrets.INTEGRATION_TEST_ARGS }} | ||
integration-tests-amd: | ||
name: Integration test (X64) | ||
runs-on: [self-hosted, X64] | ||
strategy: | ||
matrix: | ||
image: [jammy, noble] | ||
py: "3.10" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: canonical/[email protected] | ||
- name: Setup python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.py }} | ||
- name: Install tox | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install pipx -y | ||
pipx ensurepath | ||
pipx install tox | ||
# need to run in sudo mode due to chroot | ||
- name: Run integration tests | ||
run: sudo $(which tox) -e integration -- --image=${{ matrix.image }} ${{ secrets.INTEGRATION_TEST_ARGS }} |