Skip to content

Commit

Permalink
💚 Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Namgyu-Youn committed Jan 8, 2025
1 parent 7153dce commit 40bea6d
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 65 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/dependabot.yml → .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
version: 0.0.0
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
Expand Down
48 changes: 24 additions & 24 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
name: CI/CD
name: CI

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

jobs:
validate:
strategy:
matrix:
python-version: ['3.11', '3.12']

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"

- name: Install Poetry
run: |
pipx install poetry
echo "/root/.local/bin" >> $GITHUB_PATH
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Configure Poetry
run: |
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
- name: Validate Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry env use python${{ matrix.python-version }}
poetry check
poetry lock --check
- name: Install dependencies
run: |
poetry install --no-root
- name: Validate Dockerfile
run: docker build . --file Dockerfile
- name: Lint with Ruff
run: |
poetry run ruff check .
76 changes: 38 additions & 38 deletions poetry.lock

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

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ description = "GitHub repository topic generator using AI"
authors = ["Namgyu-Youn <[email protected]>"]
license = "MIT"
readme = "README.md"
package-mode = false

[tool.poetry.dependencies]
python = ">=3.10,<3.13"
Expand Down

0 comments on commit 40bea6d

Please sign in to comment.