mirror of https://github.com/Nonannet/copapy.git
ci added
This commit is contained in:
parent
92f9e7cfcf
commit
e3fbe27bc4
|
|
@ -0,0 +1,49 @@
|
|||
name: CI Pipeline
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Linting, typechecking and testing code
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: [3.10]
|
||||
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Install Python dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install -e .
|
||||
|
||||
- name: Build ops obj file
|
||||
run: bash build_ops_obj.sh
|
||||
|
||||
#- name: Lint code with flake8
|
||||
# run: flake8
|
||||
|
||||
#- name: Type checking with mypy
|
||||
# run: mypy
|
||||
|
||||
#- name: Run tests with pytest
|
||||
# run: pytest
|
||||
|
||||
- name: Upload obj files
|
||||
uses: actions/upload-artifact@v4
|
||||
if: strategy.job-index == 0
|
||||
with:
|
||||
name: object files
|
||||
path: src/copapy/obj/*.o
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
mkdir -d src/copapy/obj
|
||||
gcc -c src/copapy/ops.c -o src/copapy/obj/ops_x86_64.o
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
[project]
|
||||
name = "copapy"
|
||||
version = "1.0.0"
|
||||
version = "0.0.0"
|
||||
authors = [
|
||||
{ name="Nicolas Kruse", email="nicolas.kruse@nonan.net" },
|
||||
]
|
||||
|
|
@ -13,7 +13,7 @@ classifiers = [
|
|||
"Operating System :: OS Independent",
|
||||
]
|
||||
dependencies = [
|
||||
"pelfy>=1.0.2",
|
||||
"pelfy>=1.0.3",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
|
|
@ -28,17 +28,13 @@ build-backend = "setuptools.build_meta"
|
|||
where = ["src"]
|
||||
|
||||
[tool.setuptools.package-data]
|
||||
copapy = ["*.c"]
|
||||
copapy = ["*.c", "*.o"]
|
||||
|
||||
[project.optional-dependencies]
|
||||
dev = [
|
||||
"flake8",
|
||||
"mypy",
|
||||
"pytest",
|
||||
"pandas",
|
||||
"cantera",
|
||||
"types-PyYAML",
|
||||
"scipy-stubs"
|
||||
"pytest"
|
||||
]
|
||||
|
||||
[tool.mypy]
|
||||
|
|
|
|||
Loading…
Reference in New Issue