Skip to content

Commit

Permalink
test this
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime-desroches committed Jul 20, 2024
1 parent fec51dd commit 1988025
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 32 deletions.
55 changes: 37 additions & 18 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,49 @@ name: tests
on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
static_analysis:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Installing build dependencies
run: scripts/install_dependencies.sh
- name: Installing rednose
run: pip3 install --break-system-packages .[dev]
- name: Unit Tests
run: pytest
python-version: '3.11'
- name: Installing requirements
run:
python -m pip install -r requirements.txt
- name: Static analysis
run: pre-commit run --all

static_analysis:
smoke_test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Installing python requirements
run:
python -m pip install -r requirements.txt
- name: Installing ubuntu requirements
run:
apt-get install -y --no-install-recommends clang libeigen3-dev
- name: Building
run: scons -j$(nproc)

full_test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Installing build dependencies
run: scripts/install_dependencies.sh
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Installing python requirements
run:
python -m pip install -r requirements.txt
- name: Installing ubuntu requirements
run:
apt-get install -y --no-install-recommends clang libeigen3-dev
- name: Installing rednose
run: pip3 install --break-system-packages .[dev]
- name: Static analysis
run: pre-commit run --all
run: pip install -e .
- name: Running all tests
run: pytest
1 change: 1 addition & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ jobs:
CIBW_BEFORE_BUILD_MACOS: "brew install eigen && brew install --cask gcc-arm-embedded && brew install gcc@13"
CIBW_MANYLINUX_X86_64_IMAGE: "manylinux_2_28"
CIBW_MANYLINUX_AARCH64_IMAGE: "manylinux_2_28"
CIBW_TEST_COMMAND: pytest {package}
14 changes: 0 additions & 14 deletions Dockerfile

This file was deleted.

56 changes: 56 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# This file was autogenerated by uv via the following command:
# uv pip compile --all-extras -o requirements.txt pyproject.toml
cffi==1.16.0
# via rednose (pyproject.toml)
cfgv==3.4.0
# via pre-commit
cython==3.0.10
# via rednose (pyproject.toml)
distlib==0.3.8
# via virtualenv
execnet==2.1.1
# via pytest-xdist
filelock==3.15.4
# via virtualenv
identify==2.6.0
# via pre-commit
iniconfig==2.0.0
# via pytest
mpmath==1.3.0
# via sympy
nodeenv==1.9.1
# via pre-commit
numpy==1.26.4
# via
# rednose (pyproject.toml)
# scipy
packaging==24.1
# via pytest
platformdirs==4.2.2
# via virtualenv
pluggy==1.5.0
# via pytest
pre-commit==3.7.1
# via rednose (pyproject.toml)
pycparser==2.22
# via cffi
pytest==8.2.2
# via
# rednose (pyproject.toml)
# pytest-xdist
pytest-xdist==3.6.1
# via rednose (pyproject.toml)
pyyaml==6.0.1
# via pre-commit
ruff==0.5.3
# via rednose (pyproject.toml)
scipy==1.14.0
# via rednose (pyproject.toml)
scons==4.8.0
# via rednose (pyproject.toml)
sympy==1.13.1
# via rednose (pyproject.toml)
tqdm==4.66.4
# via rednose (pyproject.toml)
virtualenv==20.26.3
# via pre-commit

0 comments on commit 1988025

Please sign in to comment.