Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/submit_pz_resnet_flow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
# This workflow will install Python dependencies and run tests

name: Unit test and code coverage

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.13']
submission: ['pz_resnet_flow']

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt install libbz2-dev
python -m pip install --upgrade pip
pip install wheel
pip install .
pip install .[dev]
if [ -f requirements_${{ matrix.submission }}.txt ]; then pip install -r requirements_${{ matrix.submission }}.txt; fi
- name: Run unit tests with pytest
run: |
python -m pytest tests/test_${{ matrix.submission }}.py
12 changes: 12 additions & 0 deletions requirements_pz_resnet_flow.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# requirements_pz_resnet_flow.txt
torch>=2.0.0
numpy>=1.24.0
pandas>=2.0.0
h5py>=3.8.0
qp-prob>=1.0.0
tables-io[full]>=1.0.0
scipy>=1.10.0
scikit-learn>=1.0.0
matplotlib>=3.7.0
pyarrow>=10.0.0
astropy>=5.0.0
Loading
Loading