Skip to content

Commit

Permalink
Fixed some failing CIs
Browse files Browse the repository at this point in the history
  • Loading branch information
gsleap committed Oct 16, 2024
1 parent 0854adf commit 4251fb0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/run_python_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,18 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Run rust tests to generate test data
run: cargo test --all-features

- name: Setup python environment and run pytests
- name: Setup python environment and build mwalib Python module
run: |
pip3 install --upgrade pip
python3 -m venv env
source env/bin/activate
pip3 install --upgrade pip
pip3 install maturin
pip3 install --upgrade pip
python3 -m venv env
source env/bin/activate
pip3 install --upgrade pip
pip3 install maturin pytest
maturin develop --all-features --strip
maturin develop --all-features --strip
- name: Run rust tests to generate test data
run: cargo test --all-features

pip3 install pytest
pytest
- name: Run Python tests
run: pytest
2 changes: 1 addition & 1 deletion .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ jobs:
run: |
MIN_RUST=$(grep -m1 "rust-version" Cargo.toml | sed 's|.*\"\(.*\)\"|\1|')
~/.cargo/bin/rustup install $MIN_RUST --profile minimal
cargo +${MIN_RUST} test --all-features
cargo +${MIN_RUST} test --features cfitsio-static, examples

0 comments on commit 4251fb0

Please sign in to comment.