prep bugfix release (#463) #16
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: build | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- v* | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python: [3.7, 3.8, 3.9, "3.10", 3.11] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
path: py42 | |
- name: Setup Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install tox | |
run: pip install tox==3.24.1 | |
- name: Run Unit tests | |
run: cd py42; tox -e py # Run tox using the version of Python in `PATH` | |
- name: Submit coverage report | |
uses: codecov/[email protected] | |
with: | |
file: py42/coverage.xml | |
- name: Checkout mock servers | |
uses: actions/checkout@v2 | |
with: | |
repository: code42/code42-mock-servers | |
path: code42-mock-servers | |
- name: Add mock servers host addresses | |
run: | | |
sudo tee -a /etc/hosts <<EOF | |
127.0.0.1 localhost | |
127.0.0.1 core | |
127.0.0.1 alerts | |
127.0.0.1 alert-rules | |
127.0.0.1 detection-lists | |
127.0.0.1 audit-log | |
127.0.0.1 file-events | |
127.0.0.1 storage | |
127.0.0.1 preservation-data-service | |
127.0.0.1 exfiltration-data-service | |
127.0.0.1 connected-server | |
127.0.0.1 cases | |
127.0.0.1 trusted-activities-service | |
EOF | |
- name: Start up the mock servers | |
run: cd code42-mock-servers; docker-compose up -d --build | |
- name: Run the integration testss | |
run: sleep 15; cd py42; tox -e integration |