diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 23bc2ad..bd26885 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -13,13 +13,18 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.12"] + python-version: ["3.9"] steps: - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} + - name: Setup Python uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + - name: Install Poetry + uses: snok/install-poetry@v1 + with: + virtualenvs-create: true + virtualenvs-in-project: true - name: Lint with ruff run: | make lint diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 79baddd..a839785 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,4 +1,3 @@ ---- name: Release on: push: @@ -12,18 +11,21 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: '3.10' - - run: pip install -r requirements-dev.txt + - name: Setup Python + uses: actions/setup-python@v5 - - name: Build Assets - run: python setup.py sdist bdist_wheel + - name: Install Poetry + uses: snok/install-poetry@v1 + with: + virtualenvs-create: true + virtualenvs-in-project: true + + - name: Build Release + run: poetry build - name: Release uses: softprops/action-gh-release@v2 with: name: "Version ${{ github.ref_name }}" - generate_release_notes: true files: | - dist/* \ No newline at end of file + dist/* diff --git a/Makefile b/Makefile index d6e7fe1..5ddcb65 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,4 @@ .venv: - virtualenv .venv python3 -m pip install poetry python3 -m poetry install --with github