This repository was archived by the owner on Mar 26, 2025. It is now read-only.
  
  
  - 
                Notifications
    You must be signed in to change notification settings 
- Fork 186
Implemented GitHub actions for CI #559
          
     Merged
      
      
            vinitkumar
  merged 18 commits into
  django-cms:master
from
marksweb:feature/558/gh-actions
  
      
      
   
  Apr 6, 2021 
      
    
  
     Merged
                    Changes from all commits
      Commits
    
    
            Show all changes
          
          
            18 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      d03eefa
              
                Added Lint actions for flake8 and isort
              
              
                marksweb dc0f5ba
              
                Added frontend action
              
              
                marksweb a96fcfd
              
                Added config file to hopefully pick up params for flake8 and isort
              
              
                marksweb f953a51
              
                Initial test action without coverage
              
              
                marksweb e0343b0
              
                Switch to test from `setup.py`
              
              
                marksweb cd037cb
              
                Update frontend test to match travis
              
              
                marksweb 6701506
              
                Need to see if the test suite needs changing to cleanup the database …
              
              
                marksweb 1d7e832
              
                Specify treebeard version to avoid bug in 4.5
              
              
                marksweb c1214b4
              
                Specify treebeard version to avoid bug in 4.5
              
              
                marksweb 5a18c41
              
                Drop testing of Django 3.1 and CMS 3.7 - no support
              
              
                marksweb 5a7fc4a
              
                ubuntu-latest is supposed to have nvm installed so this should allow …
              
              
                marksweb bd484b9
              
                Debug nvm
              
              
                marksweb 49c15ae
              
                Remove NVM usage
              
              
                marksweb 494710f
              
                Removed travis config
              
              
                marksweb 7d19a1a
              
                Switch to running with coverage
              
              
                marksweb 9f4fa94
              
                Run on push and PR
              
              
                marksweb 7de3379
              
                Ensure tox can still find the base requirements
              
              
                marksweb 1581dd2
              
                Fixed typo
              
              
                marksweb File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| name: Frontend | ||
|  | ||
| on: [push] | ||
|  | ||
| jobs: | ||
| frontend: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| node-version: [6.x] | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Use Node.js ${{ matrix.node-version }} | ||
| uses: actions/setup-node@v1 | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| - name: Install gulp | ||
| run: npm install -g [email protected] | ||
| - name: Install dependencies | ||
| run: npm install | ||
| - name: Run gulp | ||
| run: gulp ci | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| name: Lint | ||
|  | ||
| on: [push] | ||
|  | ||
| jobs: | ||
| flake8: | ||
| name: flake8 | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v2 | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v2 | ||
| with: | ||
| python-version: 3.9 | ||
| - name: Install flake8 | ||
| run: pip install --upgrade flake8 | ||
| - name: Run flake8 | ||
| uses: liskin/gh-problem-matcher-wrap@v1 | ||
| with: | ||
| linters: flake8 | ||
| run: | | ||
| flake8 --exit-zero | ||
|  | ||
| isort: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v2 | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v2 | ||
| with: | ||
| python-version: 3.9 | ||
| - run: python -m pip install isort | ||
| - name: isort | ||
| uses: liskin/gh-problem-matcher-wrap@v1 | ||
| with: | ||
| linters: isort | ||
| run: isort -c -rc -df djangocms_text_ckeditor | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| name: CodeCov | ||
|  | ||
| on: [push, pull_request] | ||
|  | ||
| jobs: | ||
| unit-tests: | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| python-version: [ 3.7, 3.8, 3.9, ] # latest release minus two | ||
| requirements-file: [ | ||
| dj22_cms37.txt, | ||
| dj22_cms38.txt, | ||
| dj30_cms37.txt, | ||
| dj30_cms38.txt, | ||
| dj31_cms38.txt, | ||
| ] | ||
| os: [ | ||
| ubuntu-20.04, | ||
| ] | ||
|  | ||
| steps: | ||
| - uses: actions/checkout@v1 | ||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v2 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install -r tests/requirements/${{ matrix.requirements-file }} | ||
| python setup.py install | ||
|  | ||
| - name: Run coverage | ||
| run: coverage run setup.py test | ||
|  | ||
| - name: Upload Coverage to Codecov | ||
| uses: codecov/codecov-action@v1 | 
This file was deleted.
      
      Oops, something went wrong.
      
    
  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| [flake8] | ||
| ignore = E251,E128,E501 | ||
| max-line-length = 119 | ||
| exclude = | ||
| *.egg-info, | ||
| .eggs, | ||
| .git, | ||
| .settings, | ||
| .tox, | ||
| build, | ||
| data, | ||
| dist, | ||
| docs, | ||
| *migrations*, | ||
| requirements, | ||
| tmp, | ||
| *node_modules* | ||
|  | ||
| [isort] | ||
| line_length = 79 | ||
| skip = manage.py, *migrations*, .tox, .eggs, data | ||
| include_trailing_comma = true | ||
| multi_line_output = 5 | ||
| not_skip = __init__.py | ||
| lines_after_imports = 2 | ||
| default_section = THIRDPARTY | ||
| sections = FUTURE, STDLIB, DJANGO, CMS, THIRDPARTY, FIRSTPARTY, LIB, LOCALFOLDER | ||
| known_first_party = djangocms_text_ckeditor | ||
| known_cms = cms, menus | ||
| known_django = django | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -5,10 +5,13 @@ djangocms-link>=2.2.1 | |
| django-polymorphic>=2.0.3 | ||
| Pillow | ||
| html5lib>=0.999999999 | ||
|  | ||
| # other requirements | ||
| coverage | ||
| django-treebeard<4.5 | ||
| django-app-helper | ||
| tox | ||
| coverage | ||
| wheel | ||
|  | ||
| # In order to run skipped tests uncomment the next lines: | ||
| # -e git+ssh://[email protected]/divio/djangocms-transfer.git@master#egg=djangocms-transfer | ||
|  | ||
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| -r base.txt | ||
|  | ||
| Django>=2.2,<3.0 | ||
| django-cms>=3.7,<3.8 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| -r base.txt | ||
|  | ||
| Django>=2.2,<3.0 | ||
| django-cms>=3.8,<3.9 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| -r base.txt | ||
|  | ||
| Django>=3.0,<3.1 | ||
| django-cms>=3.7,<3.8 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| -r base.txt | ||
|  | ||
| Django>=3.0,<3.1 | ||
| django-cms>=3.8,<3.9 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| -r base.txt | ||
|  | ||
| Django>=3.1,<3.2 | ||
| django-cms>=3.8,<3.9 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.