env runner test passed #138
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
name: MALib CI | |
on: [push, pull_request] | |
jobs: | |
formatting: | |
runs-on: ubuntu-latest | |
name: Check Formatting | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8.14 | |
- name: Run black code formatter | |
run: | | |
cd $GITHUB_WORKSPACE | |
pip3 install --upgrade pip | |
pip3 install black==22.3.0 | |
black --check . | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8.14 | |
- name: Install requirements | |
run: | | |
pip install -e . | |
pip install -e .[dev] | |
pip install git+https://github.com/oxwhirl/smac.git | |
AutoROM -y | |
- name: Run tests and collect coverage | |
run: make test-verbose | |
- name: Upload coverage reports to Codecov | |
run: | | |
# Replace `linux` below with the appropriate OS | |
# Options are `alpine`, `linux`, `macos`, `windows` | |
curl -Os https://uploader.codecov.io/latest/linux/codecov | |
chmod +x codecov | |
./codecov -t ${CODECOV_TOKEN} |