-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #224 from crytic/dev-unify-ci
ci: unify CI jobs
- Loading branch information
Showing
11 changed files
with
70 additions
and
126 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- dev | ||
pull_request: | ||
schedule: | ||
# run CI every day even if no PRs/merges occur | ||
- cron: '0 12 * * *' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
tests: | ||
name: CI (Python ${{ matrix.python }} on ${{ matrix.os }}, ${{ matrix.type }} test) | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
python: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] | ||
os: ["ubuntu-latest", "macos-latest", "windows-2022"] | ||
type: ["solc", "solc_upgrade", "os_specific"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
id: python | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Create Python virtual environment | ||
run: | | ||
${{ steps.python.outputs.python-path }} -m venv test-venv | ||
- name: Install solc-select | ||
shell: bash | ||
run: | | ||
source test-venv/${{ (runner.os == 'Windows' && 'Scripts') || 'bin' }}/activate | ||
python -m pip install --upgrade pip | ||
pip3 install . | ||
- name: Run Tests | ||
shell: bash | ||
env: | ||
TEST_TYPE: ${{ (matrix.type != 'os_specific' && matrix.type) || runner.os }} | ||
run: | | ||
source test-venv/${{ (runner.os == 'Windows' && 'Scripts') || 'bin' }}/activate | ||
TEST_TYPE="$(echo "$TEST_TYPE" | tr '[:upper:]' '[:lower:]')" | ||
bash scripts/test_${TEST_TYPE}.sh |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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
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
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
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
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