Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add services to the config command. #104

Merged
merged 1 commit into from
Dec 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/[email protected]
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
Loading