Skip to content

Commit

Permalink
Merge pull request #162 from ctlearn-project/gh-actions
Browse files Browse the repository at this point in the history
Gh actions
  • Loading branch information
TjarkMiener authored Nov 25, 2022
2 parents add3d80 + 0bec77a commit 51b80ab
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 90 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
name: Python Package using Conda
name: CI

on: [push]

jobs:
build-linux:
runs-on: ubuntu-latest
build:
strategy:
matrix:
os: [ubuntu-22.04]
pyv: [3.9, '3.10']
max-parallel: 5

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
- name: Set up Python ${{ matrix.pyv }}
uses: actions/setup-python@v3
with:
python-version: 3.9
python-version: ${{ matrix.pyv }}
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
Expand All @@ -28,6 +30,9 @@ jobs:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Install with pip
run: |
pip install -e .
- name: Test with pytest
run: |
conda install pytest
Expand Down
40 changes: 0 additions & 40 deletions .github/workflows/python-package.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/python-publish.yml

This file was deleted.

6 changes: 4 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ CTLearn: Deep Learning for IACT Event Reconstruction
:target: https://pypi.org/project/ctlearn/
:alt: Latest Release



.. image:: https://github.com/ctlearn-project/ctlearn/actions/workflows/python-package-conda.yml/badge.svg
:target: https://github.com/ctlearn-project/ctlearn/actions/workflows/python-package-conda.yml
:alt: Continuos Integration

.. image:: images/CTLearnTextCTinBox_WhiteBkgd.png
:target: images/CTLearnTextCTinBox_WhiteBkgd.png
:alt: CTLearn Logo
Expand Down
4 changes: 2 additions & 2 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"@type": "SoftwareSourceCode",
"license": "https://spdx.org/licenses/BSD-3-Clause",
"codeRepository": "git+https://github.com/ctlearn-project/ctlearn.git",
"contIntegration": "https://github.com/ctlearn-project/ctlearn/actions/workflows",
"contIntegration": "https://github.com/ctlearn-project/ctlearn/actions",
"datePublished": "2018-03-18",
"dateModified": "2022-09-08",
"dateModified": "2022-11-25",
"downloadUrl": "https://zenodo.org/record/5947837/files/ctlearn-project/ctlearn-v0.7.0.zip",
"issueTracker": "https://github.com/ctlearn-project/ctlearn/issues",
"name": "CTLearn: Deep learning for imaging atmospheric Cherenkov telescopes event reconstruction",
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ channels:
- cta-observatory
- ctlearn-project
dependencies:
- python>=3.9
- python=3.10
- dl1_data_handler=0.10.8
- astropy
- matplotlib
Expand Down

0 comments on commit 51b80ab

Please sign in to comment.