Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

red-queen v2

red-queen v2 #276

Workflow file for this run

name: Tests
on:
push:
branches: [ main, 'stable/*' ]
pull_request:
branches: [ main, 'stable/*' ]
concurrency:
group: ${{ github.repository }}-${{ github.ref }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Pip cache
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-lint-${{ hashFiles('setup.py','requirements-dev.txt','constraints.txt') }}
restore-keys: |
${{ runner.os }}-${{ matrix.python-version }}-pip-lint-
${{ runner.os }}-${{ matrix.python-version }}-pip-
${{ runner.os }}-${{ matrix.python-version }}-
- name: Install Deps
run: python -m pip install -U 'tox<4'
- name: Run lint
run: tox -elint
benchmark:
runs-on: ubuntu-latest
name: Run changed benchmarks
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Deps
run: |
python -m pip install --upgrade pip
pip install .
- name: Run changed application benchmarks
uses: ./.github/actions/changed-benchmark
with:
path: red_queen/games/applications
default_bench: red_queen/games/applications/run_bv.py
- name: Run changed mapping benchmarks
uses: ./.github/actions/changed-benchmark
with:
path: red_queen/games/mapping
default_bench: red_queen/games/mapping/map_misc.py
- name: Print results to log
run: python -m report.console_tables --storage results/
- name: Upload original result file
uses: actions/upload-artifact@v3
with:
name: results
path: results/