Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch LGTM to CodeQL #188

Merged
merged 7 commits into from
Oct 29, 2022
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
29 changes: 29 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "GitHub CodeQL"

on:
push:
pull_request:

jobs:
CodeQL:
runs-on: ubuntu-latest
permissions:
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: python, cpp

- name: Install build requirements
run: pip3 install cython

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
4 changes: 4 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- master
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Env (${{ matrix.python-version }}, ${{ matrix.os }})
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pytest_cov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- master
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Env (${{ matrix.python-version }}, ${{ matrix.os }})
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
\build/
\dist/
\.idea/
.eggs/
**__MACOSX/
autode/ext/*.cpp
**cmake-build-debug/
Expand All @@ -18,4 +19,4 @@ tests/*.xyz
*.so
*.inp
*.pyc
**.autode_calculations
.autode_calculations
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://github.com/duartegroup/autodE/actions/workflows/pytest.yml/badge.svg)](https://github.com/duartegroup/autodE/actions) [![codecov](https://codecov.io/gh/duartegroup/autodE/branch/master/graph/badge.svg)](https://codecov.io/gh/duartegroup/autodE/branch/master) [![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/duartegroup/autodE.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/duartegroup/autodE/context:python) [![Language grade: C/C++](https://img.shields.io/lgtm/grade/cpp/g/duartegroup/autodE.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/duartegroup/autodE/context:cpp) [![Conda Recipe](https://img.shields.io/badge/recipe-autode-green.svg)](https://anaconda.org/conda-forge/autode) [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/autode.svg)](https://anaconda.org/conda-forge/autode)
[![Build Status](https://github.com/duartegroup/autodE/actions/workflows/pytest.yml/badge.svg)](https://github.com/duartegroup/autodE/actions) [![codecov](https://codecov.io/gh/duartegroup/autodE/branch/master/graph/badge.svg)](https://codecov.io/gh/duartegroup/autodE/branch/master) [![GitHub CodeQL](https://github.com/duartegroup/autodE/actions/workflows/codeql.yml/badge.svg)](https://github.com/duartegroup/autodE/actions/workflows/codeql.yml) [![Conda Recipe](https://img.shields.io/badge/recipe-autode-green.svg)](https://anaconda.org/conda-forge/autode) [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/autode.svg)](https://anaconda.org/conda-forge/autode)

![alt text](autode/common/llogo.png)
***
Expand Down
2 changes: 1 addition & 1 deletion doc/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ then, install the appropriate dependencies (you may want to create a new `virtua
environment <https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html>`_) and install::

$ conda install --file requirements.txt --channel conda-forge
$ pip install . --no-deps
$ pip install .


.. note::
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools", "cython"]
build-backend = "setuptools.build_meta"
9 changes: 3 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
from setuptools import setup
from Cython.Build import cythonize
from setuptools.extension import Extension
from Cython.Build import cythonize

extensions = [Extension('cconf_gen', ['autode/conformers/cconf_gen.pyx']),
Extension('ade_dihedrals',
sources=['autode/ext/ade_dihedrals.pyx'],
include_dirs=['autode/ext/include'],
language='c++',
extra_compile_args=["-std=c++11",
"-Wno-missing-braces", "-O3"],
extra_compile_args=["-std=c++11", "-Wno-missing-braces", "-O3"],
extra_link_args=["-std=c++11"]),

Extension('ade_rb_opt',
sources=['autode/ext/ade_rb_opt.pyx'],
include_dirs=['autode/ext/include'],
language='c++',
extra_compile_args=["-std=c++11",
"-Wno-missing-braces", "-O3"],
extra_compile_args=["-std=c++11", "-Wno-missing-braces", "-O3"],
extra_link_args=["-std=c++11"])]

setup(name='autode',
Expand Down