overwrite DataLevels in metadata #1003
Workflow file for this run
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| tags: | |
| - "**" | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-22.04] | |
| python-version: ['3.12', '3.13', '3.14'] | |
| dl1dh-version: ['latest', 'nightly'] | |
| max-parallel: 6 | |
| runs-on: ${{ matrix.os }} | |
| continue-on-error: ${{ matrix.dl1dh-version == 'nightly' || matrix.python-version == '3.14' }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Miniconda | |
| run: | | |
| wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh | |
| bash miniconda.sh -b -p $HOME/miniconda | |
| echo "$HOME/miniconda/bin" >> $GITHUB_PATH | |
| source $HOME/miniconda/etc/profile.d/conda.sh | |
| conda config --add channels conda-forge | |
| conda install -y mamba | |
| - name: Create Python environment | |
| run: | | |
| source $HOME/miniconda/etc/profile.d/conda.sh | |
| mamba create -y -n ctlearn python==${{ matrix.python-version }} -c conda-forge | |
| conda activate ctlearn | |
| - name: Install dependencies | |
| run: | | |
| source $HOME/miniconda/etc/profile.d/conda.sh | |
| conda activate ctlearn | |
| sudo apt-get update | |
| sudo apt-get install -y git | |
| pip install --upgrade pip | |
| pip install pylint pylint-exit anybadge eventio pytest flake8 | |
| if [ "${{ matrix.dl1dh-version }}" = "nightly" ]; then | |
| pip install git+https://github.com/cta-observatory/dl1-data-handler.git | |
| else | |
| pip install dl1-data-handler | |
| fi | |
| - name: Add MKL_THREADING_LAYER variable | |
| run: echo "MKL_THREADING_LAYER=GNU" >> $GITHUB_ENV | |
| - name: Lint with flake8 | |
| run: | | |
| source $HOME/miniconda/etc/profile.d/conda.sh | |
| conda activate ctlearn | |
| flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
| flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
| - name: Install package with pip | |
| run: | | |
| source $HOME/miniconda/etc/profile.d/conda.sh | |
| conda activate ctlearn | |
| pip install -e . | |
| - name: Run pytest | |
| run: | | |
| source $HOME/miniconda/etc/profile.d/conda.sh | |
| conda activate ctlearn | |
| pytest |