Merge pull request #2 from tdameros/docker #5
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: main | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-22.04, macos-12] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: make | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Set up Python Modules | |
run: pip3 install requests | |
- name: Tests | |
run: make test | |
- name: Benchmark | |
run: | | |
if [[ ${{ matrix.os }} == 'ubuntu-22.04' ]]; then | |
sudo apt-get install -y siege | |
elif [[ ${{ matrix.os }} == 'macos-12' ]]; then | |
sudo sysctl -w net.inet.tcp.msl=1000 | |
brew install siege | |
fi | |
make benchmark |