Bump black from 24.1.1 to 24.4.2 #701
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: Continuous integration | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install | |
run: | | |
python3 -m venv .env | |
source .env/bin/activate | |
python -m pip install -U pip | |
make install-dev | |
- name: Lint | |
run: | | |
source .env/bin/activate | |
make lint | |
pex: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools wheel twine pex | |
- name: Build pex | |
run: | | |
make build-pex | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.8, '3.10'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install | |
run: | | |
python3 -m venv .env | |
source .env/bin/activate | |
make install | |
make install-dev | |
- name: Unit tests | |
run: | | |
source .env/bin/activate | |
ray start --head --disable-usage-stats | |
ray start --address='127.0.0.1:6379' | |
make test | |