Skip to content

Commit

Permalink
run all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
petrutlucian94 committed Dec 16, 2024
1 parent dc732b6 commit ddfac5a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration-informing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
TEST_FLAVOR: ${{ matrix.patch }}
TEST_INSPECTION_REPORTS_DIR: ${{ github.workspace }}/inspection-reports
run: |
cd tests/integration && sg lxd -c 'tox -e integration -- --tags pull_request'
cd tests/integration && sg lxd -c 'tox -e integration -- --tags up_to_weekly'
- name: Prepare inspection reports
if: failure()
run: |
Expand Down
12 changes: 1 addition & 11 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,7 @@ jobs:
TEST_VERSION_UPGRADE_MIN_RELEASE: "1.31"
TEST_MIRROR_LIST: '[{"name": "ghcr.io", "port": 5000, "remote": "https://ghcr.io", "username": "${{ github.actor }}", "password": "${{ secrets.GITHUB_TOKEN }}"}, {"name": "docker.io", "port": 5001, "remote": "https://registry-1.docker.io", "username": "", "password": ""}, {"name": "rocks.canonical.com", "port": 5002, "remote": "https://rocks.canonical.com/cdk"}]'
run: |
tags="pull_request"
# Run all tests if there are test changes. In case of a PR, we'll
# get a merge commit that includes all changes.
if git diff HEAD HEAD~1 --name-only | grep "tests/"; then
tags="up_to_weekly"
fi
# Run all tests on backports.
if echo ${{ github.base_ref }} | grep "release-"; then
tags="up_to_weekly"
fi
cd tests/integration && sg lxd -c "tox -e integration -- --tags $tags"
cd tests/integration && sg lxd -c "tox -e integration -- --tags up_to_weekly"
- name: Prepare inspection reports
if: failure()
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/nightly-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Nightly Latest/Edge Tests
on:
schedule:
- cron: "0 0 * * *" # Runs every midnight
pull_request:

permissions:
contents: read
Expand Down Expand Up @@ -53,7 +54,7 @@ jobs:
TEST_MIRROR_LIST: '[{"name": "ghcr.io", "port": 5000, "remote": "https://ghcr.io", "username": "${{ github.actor }}", "password": "${{ secrets.GITHUB_TOKEN }}"}, {"name": "docker.io", "port": 5001, "remote": "https://registry-1.docker.io", "username": "", "password": ""}, {"name": "rocks.canonical.com", "port": 5002, "remote": "https://rocks.canonical.com/cdk"}]'
run: |
export PATH="/home/runner/.local/bin:$PATH"
cd tests/integration && sg lxd -c 'tox -vve integration -- --tags up_to_nightly '
cd tests/integration && sg lxd -c 'tox -vve integration -- --tags up_to_weekly '
- name: Prepare inspection reports
if: failure()
run: |
Expand Down

0 comments on commit ddfac5a

Please sign in to comment.