Skip to content

Commit

Permalink
ci: update github actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hectcastro committed Dec 2, 2024
1 parent 4b6a08d commit d63989c
Showing 1 changed file with 27 additions and 8 deletions.
35 changes: 27 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,43 @@
name: CI

on:
workflow_dispatch:
push:
branches:
- main
pull_request:

jobs:
build:
name: build
dependabot:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
if: github.ref != 'refs/heads/main' && github.actor == 'dependabot[bot]'
steps:
- uses: actions/checkout@v3
- name: Dependabot PR merge
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Python
uses: actions/setup-python@v4
build:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pipenv"

- name: Install pipenv
run: |
curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
- name: Install pipenv and project dependencies
- name: Install Python dependencies
run: |
python -m pip install --upgrade pipenv
pipenv install --dev --pre
pipenv install --deploy --dev
- name: Run code linter and formatter
run: |
Expand Down

0 comments on commit d63989c

Please sign in to comment.