Reduce scope of events used for triggering github actions.

Try using pip caching to improve efficiency of github actions.
pull/3028/head
derekpierre 2022-11-25 11:11:17 -05:00
parent 1da31b00a3
commit e7283471ab
4 changed files with 21 additions and 17 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,16 +18,13 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
- name: Set up Python 3.10 and install dependencies
uses: actions/setup-python@v4
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
cache: 'pip' # cache pip dependencies
- run: pip install .[dev]
- name: Install Solidity Compiler
run: python ./scripts/installation/install_solc.py

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,15 +21,12 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version }} and install dependencies
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
cache: 'pip' # cache pip dependencies
- run: pip install .[dev]
- name: Install Solidity Compiler
run: python ./scripts/installation/install_solc.py

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: