Skip to content

Commit

Permalink
ci: unify CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
elopez committed Jan 3, 2025
1 parent 5fe9d26 commit 2ff923a
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 118 deletions.
97 changes: 97 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: CI

on:
push:
branches:
- master
- dev
pull_request:
schedule:
# run CI every day even if no PRs/merges occur
- cron: '0 12 * * *'

jobs:
linux:
name: CI (Linux)
runs-on: ubuntu-latest
strategy:
matrix:
python:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
type: ["solc_upgrade", "linux", "solc"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install solc-select
run: |
sudo pip install .
solc-select install all
- name: Run Tests
env:
TEST_TYPE: ${{ matrix.type }}
run: |
bash scripts/test_${TEST_TYPE}.sh
macos:
name: CI (macOS)
runs-on: macos-latest
strategy:
matrix:
python:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
type: ["solc_upgrade", "macos", "solc"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install solc-select
run: |
sudo pip install .
solc-select install all
- name: Run Tests
env:
TEST_TYPE: ${{ matrix.type }}
run: |
bash scripts/test_${TEST_TYPE}.sh
windows:
name: CI (Windows)
runs-on: windows-2022
strategy:
matrix:
python:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
type: ["windows", "solc"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install solc-select
run: |
pip install . --user
solc-select install all
- name: Run Tests
env:
TEST_TYPE: ${{ matrix.type }}
run: |
bash scripts/test_${TEST_TYPE}.sh
shell: bash
39 changes: 0 additions & 39 deletions .github/workflows/linux-ci.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/mac-ci.yml

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/windows-ci.yml

This file was deleted.

0 comments on commit 2ff923a

Please sign in to comment.