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

Add integration with GitHub Actions CI/CD #14

Open
4 tasks
webknjaz opened this issue Jan 17, 2021 · 0 comments
Open
4 tasks

Add integration with GitHub Actions CI/CD #14

webknjaz opened this issue Jan 17, 2021 · 0 comments

Comments

@webknjaz
Copy link
Member

Please configure integration with GitHub Actions CI/CD:

  • Create a new branch called feature/14-gha-ci-cd-integration and do all the following steps within that branch.
  • Add .github/workflows/ci.yml running pre-commit. Set it up to run Python 3.9 env. Ensure you install pre-commit before running tests:
name: tests

on:
  push:
  pull_request:

jobs:
  linters:
    runs-on: ubuntu-latest

    steps:
    - name: Fetch the src
      uses: actions/checkout@v2
    - name: Set up Python 3.9
      uses: actions/setup-python@v2
      with:
        python-version: 3.9

    - name: Install pre-commit
      run: python -m pip install --upgrade pre-commit

    - name: Run pre-commit
      run: python -m pre_commit run --all-files
  • Add GitHub Actions CI/CD badge (master branch) to README.md with a single commit. ([![Build Status](https://github.com/kpi-web-guild/django-girls-blog-mike-011/workflows/tests/badge.svg)](https://github.com/kpi-web-guild/django-girls-blog-mike-011/actions?query=workflow%3Atests+branch%3Amaster))
  • Push the branch and create a Pull Request for it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant