Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test commit, do not merge #906

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
1 change: 1 addition & 0 deletions tests/integration/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
skipsdist = True
skip_missing_interpreters = True
env_list = format, lint, integration
#

[testenv]
set_env =
Expand Down
Loading