Skip to content

Commit

Permalink
fix: Add services to the config command (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
xmnlab committed Dec 24, 2023
1 parent e62610c commit b338796
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 64 deletions.
29 changes: 28 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,35 @@
name: main

on: [push, pull_request]
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
check-branch:
runs-on: ubuntu-latest

timeout-minutes: 2
concurrency:
group: ci-check-branch-${{ github.ref }}
cancel-in-progress: true

steps:
- uses: actions/checkout@v3
if: ${{ github.event_name == 'pull_request' }}
with:
fetch-depth: 0

- name: Check if the PR's branch is updated
if: ${{ github.event_name == 'pull_request' }}
uses: osl-incubator/gh-check-pr-is-updated@1.0.0
with:
remote_branch: origin/main
pr_sha: ${{ github.event.pull_request.head.sha }}

tests:
needs: check-branch
runs-on: ubuntu-latest
timeout-minutes: 10

Expand Down Expand Up @@ -55,6 +81,7 @@ jobs:
run: makim tests.smoke --verbose

linter:
needs: check-branch
runs-on: ubuntu-latest
timeout-minutes: 10

Expand Down
122 changes: 61 additions & 61 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exclude = [
"sugar" = "sugar.__main__:app"

[tool.poetry.dependencies]
python = ">=3.8.1"
python = ">=3.8.1,<4"
Jinja2 = ">=2"
sh = ">=2.0.0"
pyyaml = ">=6"
Expand Down
2 changes: 1 addition & 1 deletion src/sugar/sugar.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def _build(self):
self._call_compose_app('build', services=self.service_names)

def _config(self):
self._call_compose_app('config')
self._call_compose_app('config', services=self.service_names)

def _create(self):
self._call_compose_app('create', services=self.service_names)
Expand Down

0 comments on commit b338796

Please sign in to comment.