Skip to content

Commit

Permalink
remove old files (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelallan72 authored Sep 19, 2024
1 parent b5bbbc2 commit a394816
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 74 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
fail-fast: false
matrix:
runs-on: [[ubuntu-22.04]]
test-command: ['make functional']
test-command: ['tox -e func']
juju-channel: ["3.4/stable"]
steps:

Expand Down Expand Up @@ -116,8 +116,16 @@ jobs:
echo "TEST_MODEL_CONSTRAINTS=arch=arm64" >> "$GITHUB_ENV"
fi
- name: Build the charm
run: charmcraft -v pack

- name: Run tests
run: ${{ matrix.test-command }}
run: |
export CHARM_PATH_JAMMY="$(pwd)/$(ls | grep '.*22.04.*\.charm$')"
echo "$CHARM_PATH_JAMMY"
export CHARM_PATH_FOCAL="$(pwd)/$(ls | grep '.*20.04.*\.charm$')"
echo "$CHARM_PATH_FOCAL"
${{ matrix.test-command }}
env:
TEST_JUJU3: "1" # https://github.com/openstack-charmers/zaza/pull/653
TEST_JUJU_CHANNEL: ${{ matrix.juju-channel }}
Expand Down
44 changes: 0 additions & 44 deletions Makefile

This file was deleted.

13 changes: 0 additions & 13 deletions rename.sh

This file was deleted.

1 change: 1 addition & 0 deletions tests/functional/tests/bundles/overlays/focal.yaml.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
series: focal
applications:
{{ charm_name }}:
charm: "{{ CHARM_PATH_FOCAL }}"
options:
juju-channel: {{ TEST_JUJU_CHANNEL }}
3 changes: 2 additions & 1 deletion tests/functional/tests/bundles/overlays/jammy.yaml.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
series: jammy
applications:
{{ charm_name }}:
charm: "{{ CHARM_PATH_JAMMY }}"
options:
juju-channel: {{ TEST_JUJU_CHANNEL }}
juju-channel: {{ TEST_JUJU_CHANNEL }}

This file was deleted.

12 changes: 1 addition & 11 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ basepython = python3
passenv =
HOME
OS_*
JUJU_REPOSITORY
TEST_*
CHARM_*

setenv =
PYTHONPATH = .
Expand All @@ -25,16 +25,6 @@ deps =
-r {toxinidir}/tests/functional/requirements.txt
commands = functest-run-suite --keep-faulty-model {posargs}

[testenv:func-smoke]
commands =
functest-run-suite --keep-faulty-model --smoke
deps = -r{toxinidir}/test-requirements.txt
passenv =
HOME
JUJU_REPOSITORY
OS_*
TEST_*

[testenv:lint]
commands =
black --check reactive lib tests
Expand Down

0 comments on commit a394816

Please sign in to comment.