Skip to content

Cleanup actor system code #348

Cleanup actor system code

Cleanup actor system code #348

Workflow file for this run

name: CI
on:
push:
pull_request:
schedule:
- cron: '0 14 * * *'
# Allows triggering the job manually
workflow_dispatch:
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: pip
cache-dependency-path: pyproject.toml
- name: "Install dependencies"
run: python -m pip install .[develop]
- uses: pre-commit/[email protected]
test:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
os:
- macos-latest
- ubuntu-latest
runs-on: ${{ matrix.os }}
name: unit ${{ fromJson('{"macos-latest":"macOS","ubuntu-latest":"Ubuntu"}')[matrix.os] }} ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: pyproject.toml
- name: "Install dependencies"
run: python -m pip install --upgrade nox
- name: "Run tests"
run: nox -s test-${{matrix.python-version}}
rally-tracks-compat:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: pip
cache-dependency-path: pyproject.toml
- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "17"
- run: echo "JAVA17_HOME=$JAVA_HOME_17_X64" >> $GITHUB_ENV
- run: echo "JAVA11_HOME=$JAVA_HOME_11_X64" >> $GITHUB_ENV
- name: "Install dependencies"
run: python -m pip install --upgrade nox
- name: "Run tests"
run: nox -s rally_tracks_compat
env:
# elastic/endpoint fetches assets from GitHub, authenticate to avoid
# being rate limited
ASSETS_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Artifact will show up under "Artifacts" in the "Summary" page of runs
- uses: actions/upload-artifact@v3
if: always()
with:
name: rally-tracks-compat-logs
path: /home/runner/.rally/logs/
if-no-files-found: error
install-with-pyenv:
runs-on: ubuntu-22.04
steps:
- name: Install Python with pyenv
uses: gabrielfalcao/pyenv-action@v13
with:
default: "3.10.9"
command: python3 -m pip install --user --upgrade pip
- name: Check Python version
run: python3 --version | grep "Python 3.10.9"
- name: Install Rally
run: python3 -m pip install --user esrally
- run: esrally --version