Skip to content

Commit

Permalink
remove whitespace, update test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
5had3z committed May 28, 2024
1 parent c0cce1d commit 1fcb30c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,25 @@
name: Run Tests

on: [push]

jobs:
test:
runs-on: ubuntu-22.04

strategy:
matrix:
cmake-version: [3.22]
gcc-version: [13]

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive

- name: Set up CMake, GCC, and G++
run: |
sudo apt-get update
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y g++-${{ matrix.gcc-version }} gcc-${{ matrix.gcc-version }}
sudo apt-get install -y cmake ninja-build git libboost-iostreams1.74-dev libtbb-dev
sudo apt-get install -y cmake ninja-build libboost-iostreams1.74-dev libtbb-dev
- name: Download Artifact from Previous Workflow
uses: dawidd6/action-download-artifact@v3
with:
Expand All @@ -35,35 +29,31 @@ jobs:
name: build
path: /home/runner/work/sc2-serializer/build/ # extract to build folder
continue-on-error: true # Continue even if artifacts are not found

- name: Fix python setup issues
run: |
sudo apt-get purge -y python3-setuptools
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
pip install --upgrade pip
- name: Configure CMake
run: |
export CC="/usr/bin/gcc-${{ matrix.gcc-version }}"
export CXX="/usr/bin/g++-${{ matrix.gcc-version }}"
cmake -B /home/runner/work/sc2-serializer/build -G Ninja -DSC2_PY_READER=OFF -DSC2_TESTS=ON -DBUILD_API_EXAMPLES=OFF
- name: Build and run tests
run: cmake --build /home/runner/work/sc2-serializer/build --parallel --config Release && /home/runner/work/sc2-serializer/build/test_database && /home/runner/work/sc2-serializer/build/test_readwrite

run: |
cmake --build /home/runner/work/sc2-serializer/build --parallel --config Release
/home/runner/work/sc2-serializer/build/test_database
/home/runner/work/sc2-serializer/build/test_readwrite
- name: Archive build artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: build
path: /home/runner/work/sc2-serializer/build
if: success()

- name: Ensure pybind11-stubgen installed
run: pip install git+https://github.com/5had3z/pybind11-stubgen.git black

- name: Run python building
run: pip install .

- name: Check the python imports
run: python -c "import sc2_replay_reader; db = sc2_replay_reader.ReplayDataAllDatabase()"
1 change: 1 addition & 0 deletions docs_sphinx/api/benchmark.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Benchmark
=========

Size and speed benchmarks are completed with a small but representative sample of 20 replays from the 4.9.2 pool.

- 2a5591989f900e6aa8f91803abada291755638c9292be9d1360bed0003ff4eb6
- e2d117e1a78f03f8ce00d7bc898977966486ecc53b441ebc017bdb8eee481aef
- e5770833a7ca145ece0cbd2ce6ac7a512094f50613d6c8a6fbe0888b6ca3e285
Expand Down

0 comments on commit 1fcb30c

Please sign in to comment.