-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Alexis Jeandet <[email protected]>
- Loading branch information
Showing
8 changed files
with
169 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: C/C++ CI | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
name: build an tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
with: | ||
submodules: true | ||
- name: Install dependencies | ||
run: sudo apt update && sudo apt install -y libcurl4-openssl-dev python3-astropy lcov g++ ninja-build && sudo pip3 install --upgrade meson | ||
- name: Configure with meson | ||
run: meson -Db_coverage=true -Dwith_tests=true . build | ||
- name: Build (meson) | ||
run: ninja -C build | ||
- name: Run tests (meson) | ||
run: ninja test -C build | ||
- name: Generate Coverage repport | ||
run: | | ||
lcov --capture --directory . --output-file coverage.info | ||
lcov --remove coverage.info '/usr/*' --output-file coverage.info | ||
lcov --list coverage.info | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
file: ./coverage.info | ||
flags: unittests | ||
name: codecov-cdfpp | ||
yml: ./codecov.yml | ||
fail_ci_if_error: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Python packages linux | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
name: build python packages | ||
runs-on: ubuntu-latest | ||
container: quay.io/pypa/manylinux2014_x86_64 | ||
steps: | ||
- name: install deps | ||
run: yum install -y libcurl-devel && /opt/python/cp310-cp310/bin/pip install twine | ||
- uses: actions/checkout@v1 | ||
with: | ||
submodules: true | ||
- name: Build for Python 3.7 | ||
run: /opt/python/cp37-cp37m/bin/python -m build . | ||
- name: Build for Python 3.8 | ||
run: /opt/python/cp38-cp38/bin/python -m build . | ||
- name: Build for Python 3.9 | ||
run: /opt/python/cp39-cp39/bin/python -m build . | ||
- name: Build for Python 3.10 | ||
run: /opt/python/cp310-cp310/bin/python -m build . | ||
- name: Make wheels universal | ||
run: for wheel in $(ls dist/*.whl); do auditwheel repair $wheel; done | ||
- name: Publish on PyPi | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: /opt/python/cp310-cp310/bin/twine upload wheelhouse/* |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Python packages OSX | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
python-version: ['3.7', '3.8', '3.9', '3.10'] | ||
name: Python ${{ matrix.python-version }} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Build python wheel | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
- run: | | ||
pip install twine build auditwheel | ||
FC=gfortran-11 CC=gcc-11 CXX=g++-11 python -m build . | ||
- name: Publish on PyPi | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: twine upload dist/*.whl |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Python packages Windows | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
strategy: | ||
max-parallel: 1 | ||
matrix: | ||
python-version: ['3.7', '3.8', '3.9', '3.10'] | ||
name: Python ${{ matrix.python-version }} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Build python wheel | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
- run: | | ||
pip install twine build | ||
python -m build . | ||
- name: Publish on PyPi | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: twine upload dist/* |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
TBC |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[build-system] | ||
requires = ["mesonpep517", "ninja",] | ||
build-backend = "mesonpep517.buildapi" | ||
|
||
|
||
[tool.mesonpep517.metadata] | ||
description="A simple python wrapper of N. A. Tsyganenko Fortran models and Geopack module" | ||
author = "Alexis Jeandet" | ||
author-email = "[email protected]" | ||
summary = "A simple python wrapper of N. A. Tsyganenko Fortran models and Geopack module" | ||
[project] | ||
[urls] | ||
homepage = "https://github.com/LaboratoryOfPlasmaPhysics/py_tsyganenko" | ||
license = "GNU General Public License v3" | ||
readme = "README.md" | ||
classifiers = [ | ||
"Development Status :: 2 - Pre-Alpha", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)", | ||
"Natural Language :: English", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
] | ||
dependencies = [] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env python | ||
|
||
import setuptools | ||
|
||
if __name__ == "__main__": | ||
setuptools.setup() |