Merge pull request #3028 from derekpierre/update-actions

Update GH actions - scope triggers, and use caching
pull/3036/head
KPrasch 2022-11-29 12:26:35 +01:00 committed by GitHub
commit 91bb4a4ce3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 48 additions and 9 deletions

View File

@ -2,7 +2,9 @@ name: '📃 Contract Tests'
on:
pull_request:
types: [opened, reopened, edited, ready_for_review, synchronize]
branches:
- main
- development
concurrency:
group: ci-tests-${{ github.ref }}-contracts
@ -16,13 +18,22 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
- id: setup_python
name: Set up Python 3.10 Environment
uses: actions/setup-python@v4
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.10'
- name: Install dependencies
- id: python_cache
name: Retrieve Cached Python Dependencies
uses: actions/cache@v3
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-pip-${{ steps.setup_python.outputs.python-version }}-${{ hashFiles('dev-requirements.txt', 'requirements.txt') }}
- name: Install Dependencies
if: steps.python_cache.outputs.cache-hit != 'true'
run: |
python -m pip install --upgrade pip
pip install .[dev]

View File

@ -1,6 +1,10 @@
name: 🧹 Darker
on: [push, pull_request]
on:
pull_request:
branches:
- main
- development
jobs:
lint:
@ -9,7 +13,7 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
- uses: akaihola/darker@1.4.2
with:
options: "--check --diff --isort"

View File

@ -2,7 +2,9 @@ name: '🔎 Python Tests'
on:
pull_request:
types: [opened, reopened, edited, ready_for_review, synchronize]
branches:
- main
- development
concurrency:
group: ci-tests-${{ github.ref }}-pytest
@ -19,12 +21,21 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
- id: setup_python
name: Set up Python ${{ matrix.python-version }} Environment
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
- id: python_cache
name: Retrieve Cached Python Dependencies
uses: actions/cache@v3
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-pip-${{ steps.setup_python.outputs.python-version }}-${{ hashFiles('dev-requirements.txt', 'requirements.txt') }}
- name: Install Dependencies
if: steps.python_cache.outputs.cache-hit != 'true'
run: |
python -m pip install --upgrade pip
pip install .[dev]

View File

@ -2,7 +2,9 @@ name: '👷 Run Demo'
on:
pull_request:
types: [opened, reopened, edited, ready_for_review, synchronize]
branches:
- main
- development
jobs:
run-demo:

11
codecov.yml Normal file
View File

@ -0,0 +1,11 @@
coverage:
status:
project:
default:
target: auto
threshold: 0.1%
base: auto
flags:
- unit
- integration
- acceptance

View File