mirror of https://github.com/crytic/slither
parent
3a6888694d
commit
9122cef24e
@ -1,65 +0,0 @@ |
|||||||
--- |
|
||||||
name: CI |
|
||||||
|
|
||||||
defaults: |
|
||||||
run: |
|
||||||
shell: bash |
|
||||||
|
|
||||||
on: |
|
||||||
push: |
|
||||||
branches: |
|
||||||
- master |
|
||||||
- dev |
|
||||||
pull_request: |
|
||||||
|
|
||||||
concurrency: |
|
||||||
group: ${{ github.workflow }}-${{ github.ref }} |
|
||||||
cancel-in-progress: true |
|
||||||
|
|
||||||
jobs: |
|
||||||
tests: |
|
||||||
runs-on: ${{ matrix.os }} |
|
||||||
strategy: |
|
||||||
fail-fast: false |
|
||||||
matrix: |
|
||||||
os: ["ubuntu-latest"] # Do not run on windows to save time. In practice not many users are on windows, and this is still run on the cron job |
|
||||||
python: ${{ (github.event_name == 'pull_request' && fromJSON('["3.8", "3.12"]')) || fromJSON('["3.8", "3.9", "3.10", "3.11", "3.12"]') }} |
|
||||||
type: ["data_dependency", |
|
||||||
"path_filtering", |
|
||||||
"erc", |
|
||||||
"find_paths", |
|
||||||
"flat", |
|
||||||
"interface", |
|
||||||
"printers", |
|
||||||
"slither_config", |
|
||||||
"upgradability"] |
|
||||||
steps: |
|
||||||
- uses: actions/checkout@v4 |
|
||||||
- name: Set up Python ${{ matrix.python }} |
|
||||||
uses: actions/setup-python@v5 |
|
||||||
with: |
|
||||||
python-version: ${{ matrix.python }} |
|
||||||
- name: Install dependencies |
|
||||||
run: | |
|
||||||
pip install ".[test]" |
|
||||||
solc-select use 0.4.25 --always-install |
|
||||||
solc-select use 0.8.0 --always-install |
|
||||||
solc-select use 0.5.1 --always-install |
|
||||||
|
|
||||||
- name: Set up nix |
|
||||||
if: matrix.type == 'dapp' |
|
||||||
uses: cachix/install-nix-action@V27 |
|
||||||
|
|
||||||
- name: Set up cachix |
|
||||||
if: matrix.type == 'dapp' |
|
||||||
uses: cachix/cachix-action@v15 |
|
||||||
with: |
|
||||||
name: dapp |
|
||||||
|
|
||||||
- name: Run Tests |
|
||||||
env: |
|
||||||
PYTHONUTF8: 1 |
|
||||||
TEST_TYPE: ${{ matrix.type }} |
|
||||||
GITHUB_ETHERSCAN: ${{ secrets.GITHUB_ETHERSCAN }} |
|
||||||
run: | |
|
||||||
bash "scripts/ci_test_${TEST_TYPE}.sh" |
|
Loading…
Reference in new issue