DEV Community

Eliyahou
Eliyahou

Posted on • Edited on

CI - Countinous Integration

  • In the lesson we have learned how to create actions in file .github/workflows
  • The porpos is that when we push PR into github We want to have some checks on it
  • We have learned about local environment that we can use in the action and about Matrix that uses Dynamic variables we also saw an exaples of the action in run time
  • It is done by creating a YAML with some action in it
  • An example of YAML file:
name: Python

on: push

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v3

    - name: Setup Python
      uses: actions/setup-python@v2

    - name: Install dependencies
      run: pip install -r requirements.txt

    - name: Check Python version
      run: python -V

    - name: Test with pytest
      run: pytest
Enter fullscreen mode Exit fullscreen mode

I created CI for project name xpath-filter
The PR for Adding the CI

Top comments (0)