diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml new file mode 100644 index 0000000..d475e9a --- /dev/null +++ b/.gitea/workflows/test.yml @@ -0,0 +1,36 @@ +name: Tests + +on: + pull_request: + push: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] + + steps: + - name: Checkout code + uses: https://git.hogertz.eu/actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd + + - name: Set up Python + uses: https://git.hogertz.eu/actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c + with: + python-version: ${{ matrix.python-version }} + + - name: Install uv + run: | + curl -LsSf https://astral.sh/uv/install.sh | sh + echo "$HOME/.cargo/bin" >> $GITHUB_PATH + + - name: Install dependencies + run: | + uv sync --extra dev + + - name: Run tests + run: | + uv run pytest diff --git a/certbot_dns_corenetworks/dns_corenetworks_test.py b/certbot_dns_corenetworks/dns_corenetworks_test.py index d365363..5364dc8 100644 --- a/certbot_dns_corenetworks/dns_corenetworks_test.py +++ b/certbot_dns_corenetworks/dns_corenetworks_test.py @@ -20,7 +20,7 @@ class AuthenticatorTest(test_util.TempDirTestCase): path = os.path.join(self.tempdir, "file.ini") dns_test_common.write( - {"corenetworks_login": LOGIN, "corenetworks_password": PASSWORD}, path + {"corenetworks_username": LOGIN, "corenetworks_password": PASSWORD}, path ) self.config = mock.MagicMock(