-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (51 loc) · 1.56 KB
/
plone-package-test-gha.yml
File metadata and controls
56 lines (51 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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/smartweb/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: echo coveralls --service=github