Skip to content

Commit

Permalink
not to require virtualenv in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lan496 committed Mar 11, 2024
1 parent 07ead27 commit c13dfd9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/ci-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install uv
run: pip install uv
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -47,7 +45,7 @@ jobs:
shell: bash
run: |
set -e
uv pip install moyopy[dev] --find-links dist --force-reinstall
pip install moyopy[dev] --find-links dist --force-reinstall
cd moyopy && pytest -v
- name: pytest
if: ${{ !startsWith(matrix.target, 'x86') && matrix.target != 'ppc64' }}
Expand Down Expand Up @@ -76,8 +74,6 @@ jobs:
with:
python-version: '3.10'
architecture: ${{ matrix.target }}
- name: Install uv
run: pip install uv
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -94,7 +90,7 @@ jobs:
shell: bash
run: |
set -e
uv pip install moyopy[dev] --find-links dist --force-reinstall
pip install moyopy[dev] --find-links dist --force-reinstall
cd moyopy && pytest -v
macos:
Expand All @@ -107,8 +103,6 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install uv
run: pip install uv
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -125,7 +119,7 @@ jobs:
shell: bash
run: |
set -e
uv pip install moyopy[dev] --find-links dist --force-reinstall
pip install moyopy[dev] --find-links dist --force-reinstall
cd moyopy && pytest -v
sdist:
Expand Down
3 changes: 0 additions & 3 deletions moyo/tests/test_moyo_dataset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,6 @@ fn test_with_hcp() {
let numbers = vec![0, 0];
let cell = Cell::new(lattice, positions, numbers);

let serialized = serde_json::to_string(&cell).unwrap();
println!("{:?}", serialized);

let symprec = 1e-4;
let angle_tolerance = AngleTolerance::Default;
let setting = Setting::Standard;
Expand Down

0 comments on commit c13dfd9

Please sign in to comment.