Skip to content

Commit

Permalink
Merge pull request #6 from nicholasmhughes/copier-profile
Browse files Browse the repository at this point in the history
copier profile 0.2.7
  • Loading branch information
nicholasmhughes authored Jan 13, 2024
2 parents 973c481 + 238ae4b commit d1ca6c1
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 16 deletions.
3 changes: 2 additions & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Autogenerated. Do not edit this by hand, use `copier update`.
---
_commit: 0.2.6
_commit: 0.2.7
_src_path: https://github.com/lkubb/salt-extension-copier
author: EITR Technologies, LLC
author_email: eitr@devops.tech
Expand All @@ -23,3 +23,4 @@ ssh_fixtures: false
summary: Salt Extension for interacting with Consul
tracker_url: https://github.com/salt-extensions/saltext-consul/issues
url: https://github.com/salt-extensions/saltext-consul
workflows: org
10 changes: 8 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
name: Pull Request or Push

on: [push, pull_request]
on:
push:
branches:
- 'main' # Run on pushes to main
tags-ignore:
- '*' # Ignore pushes to tags
pull_request:

jobs:
ci:
call_central_workflow:
name: CI
uses: salt-extensions/central-artifacts/.github/workflows/ci.yml@main
permissions:
Expand Down
27 changes: 16 additions & 11 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,29 @@ name: Tagged Releases
on:
push:
tags:
- "v*"
- "v*" # Only tags starting with "v" for "v1.0.0", etc.

jobs:
ci:
get_tag_version:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.get_version.outputs.version }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Extract tag name
id: get_version
run: echo "VERSION=$(echo ${GITHUB_REF#refs/tags/v})" >> $GITHUB_ENV
run: echo "::set-output name=version::$(echo ${GITHUB_REF#refs/tags/v})"

- name: CI
uses: salt-extensions/central-artifacts/.github/workflows/ci.yml@main
with:
release: true
version: ${{ env.VERSION }}
permissions:
contents: write
pull-requests: read
call_central_workflow:
needs: get_tag_version
uses: salt-extensions/central-artifacts/.github/workflows/ci.yml@main
with:
release: true
version: ${{ needs.get_tag_version.outputs.version }}
permissions:
contents: write
id-token: write
pull-requests: read
secrets: inherit
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@

autosummary_generate = False

suppress_warnings = ["myst.header"]

# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ lint = [
"saltpylint",
]
tests = [
"pytest>=6.1.0",
"pytest-salt-factories>=1.0.0rc19",
"pytest>=7.2.0",
"pytest-salt-factories>=1.0.0rc28",
]

[project.entry-points."salt.loader"]
Expand Down
5 changes: 5 additions & 0 deletions tests/unit/conftest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import os

import pytest
import salt.config

Expand All @@ -17,6 +19,7 @@ def minion_opts(tmp_path):
dirpath.mkdir(parents=True)
opts[name] = str(dirpath)
opts["log_file"] = "logs/minion.log"
opts["conf_file"] = os.path.join(opts["conf_dir"], "minion")
return opts


Expand All @@ -35,6 +38,7 @@ def master_opts(tmp_path):
dirpath.mkdir(parents=True)
opts[name] = str(dirpath)
opts["log_file"] = "logs/master.log"
opts["conf_file"] = os.path.join(opts["conf_dir"], "master")
return opts


Expand All @@ -54,4 +58,5 @@ def syndic_opts(tmp_path):
dirpath.mkdir(parents=True)
opts[name] = str(dirpath)
opts["log_file"] = "logs/syndic.log"
opts["conf_file"] = os.path.join(opts["conf_dir"], "syndic")
return opts

0 comments on commit d1ca6c1

Please sign in to comment.