tests: Run the analyze_headers on generated headers #43
Workflow file for this run
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: Headers | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
run: pip install -r scripts/headers/requirements.txt | |
- name: Run unit tests | |
run: python -m unittest discover -v -s ./scripts/headers -p '*test.py' | |
- name: Run generate_headers.py script | |
run: python scripts/headers/bw1_decomp_gen/generate_headers.py | |
- name: Run analyze_headers.py script | |
run: python scripts/headers/analyze_headers.py | |
- name: Upload generated headers as artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: bw1_decomp_gen_headers | |
path: generated_headers_output/ | |
- name: Upload re-generated database as artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: bw1_decomp_gen_database | |
path: extracted_reversing_data_bw_141.json |