Add ideabox profiles, fields, campaignview content type and refactor … #22
This file contains 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
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/[email protected] | |
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/[email protected] | |
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/[email protected] | |
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 | |