Skip to content

Commit

Permalink
feat(ci/cd): use our own github actions [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
remdub committed Sep 24, 2024
1 parent b754bef commit 8ff644d
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 110 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/plone-package-test-gha.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Tests

on:
push:
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
black:
runs-on: gha-runners-smartweb
steps:
- name: Checkout codebase
uses: actions/checkout@v4
- name: Run check
uses: IMIO/gha/code-analysis-notify@v3.9.4
with:
BASE_DIR: 'src'
CHECK: 'black'
PATH: |
imio/directory/core
MATTERMOST_WEBHOOK_URL: ${{ secrets.SMARTWEB_MATTERMOST_WEBHOOK_URL }}

test:
runs-on: gha-runners-smartweb
strategy:
matrix:
python-version: [3.8, 3.9, '3.10']
steps:
- name: Checkout codebase
uses: actions/checkout@v4
- name: Run check
uses: IMIO/gha/plone-package-test-notify@v3.9.4
with:
CACHE_KEY: eggs-test-${{ hashFiles('base.cfg') }}-python-${{ matrix.python-version }}
TEST_COMMAND: TZ=UTC bin/test
MATTERMOST_WEBHOOK_URL: ${{ secrets.SMARTWEB_MATTERMOST_WEBHOOK_URL }}
PYTHON_VERSION: ${{ matrix.python-version }}

coverage:
runs-on: gha-runners-smartweb
steps:
- name: Checkout codebase
uses: actions/checkout@v4
- name: Run check
uses: IMIO/gha/plone-package-test-notify@v3.9.4
with:
CACHE_KEY: eggs-test-${{ hashFiles('base.cfg') }}-python-3.10
TEST_COMMAND: TZ=UTC coverage run bin/test
REQUIREMENTS_FILE: 'requirements-coverage.txt'
MATTERMOST_WEBHOOK_URL: ${{ secrets.SMARTWEB_MATTERMOST_WEBHOOK_URL }}
- name: Submit to Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: coveralls --service=github

110 changes: 0 additions & 110 deletions .github/workflows/plone-package-test.yml

This file was deleted.

2 changes: 2 additions & 0 deletions requirements-coverage.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-r requirements.txt
coveralls==3.2.0

0 comments on commit 8ff644d

Please sign in to comment.