gha: process box files #11
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: Process Box | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: {} | ||
jobs: | ||
<<<<<<< Updated upstream | ||
read-data: | ||
======= | ||
process-box-files: | ||
>>>>>>> Stashed changes | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Set up python 3.x | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' | ||
<<<<<<< Updated upstream | ||
cache: 'pip3' | ||
run: pip3 install -r requirements.txt | ||
- name: Process CSV files | ||
run: | | ||
python gha/process-box.py | ||
======= | ||
- name: Install requirements | ||
run: | | ||
pip3 install networkx | ||
pip3 install matplotlib | ||
- name: Process CSV files | ||
run: | | ||
# copy up one dir so imports work | ||
cp gha/process-box.py . | ||
python process-box.py | ||
- name: Package artifacts | ||
run: | | ||
zip -r ot-figures.zip gha/out/ot-figures/ | ||
>>>>>>> Stashed changes | ||
- name: Upload OT figures | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: OT-figures | ||
path: gha/out/ot-figures/*.zip | ||
- name: Upload OT events file | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: OT-events | ||
path: gha/out/ot-events.csv |