-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add dependabot * Add verified commit * Patch lovely-pytest-docker to use `docker compose` * Add rename check to logging tests * Add upterm debugging * Clear logs before test runs. And add debug logging * Stop test intentionally failing * Correct version number * bump version v24.30.0 -> v24.32.0 * Add daily test run
- Loading branch information
1 parent
9fa2d3b
commit edae26a
Showing
7 changed files
with
107 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "pip" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Daily Test | ||
|
||
env: | ||
DEFAULT_PYTHON: "3.11" | ||
PRE_COMMIT_CACHE: ~/.cache/pre-commit | ||
KEY_PREFIX: base-venv | ||
CACHE_VERSION: 1 | ||
# yamllint disable-line rule:truthy | ||
on: | ||
schedule: | ||
- cron: "0 2 * * *" | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
prepare-base: | ||
name: Prepare base dependencies | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Check out code from GitHub | ||
uses: actions/[email protected] | ||
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
id: python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ env.DEFAULT_PYTHON }} | ||
check-latest: true | ||
- name: Create Python virtual environment | ||
run: | | ||
python -m venv venv | ||
. venv/bin/activate | ||
python -m pip install -U pip setuptools wheel | ||
pip install -U ".[dev]" | ||
- name: Run tests | ||
env: | ||
SMTP_USERNAME: ${{ secrets.SMTP_USERNAME }} | ||
SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }} | ||
run: | | ||
. venv/bin/activate | ||
pip install -U . | ||
python -m pytest |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "opentaskpy" | ||
version = "v24.30.0" | ||
version = "v24.32.0" | ||
authors = [{ name = "Adam McDonagh", email = "[email protected]" }] | ||
license = { text = "GPLv3" } | ||
classifiers = [ | ||
|
@@ -71,7 +71,7 @@ otf-batch-validator = "opentaskpy.cli.batch_validator:main" | |
profile = 'black' | ||
|
||
[tool.bumpver] | ||
current_version = "v24.30.0" | ||
current_version = "v24.32.0" | ||
version_pattern = "vYY.WW.PATCH[-TAG]" | ||
commit_message = "bump version {old_version} -> {new_version}" | ||
commit = true | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# monkey patch lovely pytest docker plugin | ||
# lovely-pytest-docker is no longer maintained, so we need to monkey patch it | ||
# to use docker compose instead as docker-compose v1 is no longer part of the | ||
# GitHub Actions runner | ||
from lovely.pytest.docker.compose import DockerComposeExecutor, execute | ||
|
||
|
||
def docker_compose_executor(self, *subcommand): | ||
command = ["docker", "compose", "--project-directory", self.project_directory] | ||
for compose_file in self._compose_files: # pylint: disable=protected-access | ||
command.append("-f") | ||
command.append(compose_file) | ||
command.append("-p") | ||
command.append(self._project_name) # pylint: disable=protected-access | ||
command += subcommand | ||
return execute(command) | ||
|
||
|
||
DockerComposeExecutor.execute = docker_compose_executor |
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