mirror of https://github.com/nucypher/nucypher.git
Merge pull request #3028 from derekpierre/update-actions
Update GH actions - scope triggers, and use cachingpull/3036/head
commit
91bb4a4ce3
|
@ -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]
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -2,7 +2,9 @@ name: '👷 Run Demo'
|
|||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, reopened, edited, ready_for_review, synchronize]
|
||||
branches:
|
||||
- main
|
||||
- development
|
||||
|
||||
jobs:
|
||||
run-demo:
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
coverage:
|
||||
status:
|
||||
project:
|
||||
default:
|
||||
target: auto
|
||||
threshold: 0.1%
|
||||
base: auto
|
||||
flags:
|
||||
- unit
|
||||
- integration
|
||||
- acceptance
|
Loading…
Reference in New Issue