Skip to content

Commit

Permalink
Add --pre for pip installs
Browse files Browse the repository at this point in the history
  • Loading branch information
milesgranger committed Mar 9, 2024
1 parent e688d33 commit 3bd98f0
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
args: -i python --release --out dist --sdist --manifest-path cramjam-python/Cargo.toml
- name: Install built wheels - x86_64
run: |
pip install cramjam --no-index --find-links dist --force-reinstall
pip install cramjam[dev] --pre --no-index --find-links dist --force-reinstall
pip install cramjam-cli --no-index --find-links dist --force-reinstall
- name: Build wheels - universal2
if: ${{ matrix.python-version >= '3.8' || contains(fromJson('["3.10", "3.11", "3.12"]'), matrix.python-version) }}
Expand All @@ -55,15 +55,12 @@ jobs:
- name: Install built wheels - universal2
if: ${{ matrix.python-version >= '3.8' || contains(fromJson('["3.10", "3.11", "3.12"]'), matrix.python-version) }}
run: |
pip install cramjam --no-index --find-links dist --force-reinstall
pip install cramjam[dev] --pre --no-index --find-links dist --force-reinstall
pip install cramjam-cli --no-index --find-links dist --force-reinstall
- name: Python UnitTest - cramjam-cli
run: |
pip install pytest numpy hypothesis
python -m pytest cramjam-cli -vs --ignore **/benchmarks
run: python -m pytest cramjam-cli -vs --ignore **/benchmarks
- name: Python UnitTest - cramjam-python
run: |
python -m pytest cramjam-python -vs --ignore **/benchmarks
run: python -m pytest cramjam-python -vs --ignore **/benchmarks
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -102,7 +99,7 @@ jobs:
- name: Install built wheel
run: |
pip install cramjam-cli --no-index --find-links dist --force-reinstall
pip install cramjam[dev] --find-links dist --force-reinstall
pip install cramjam[dev] --pre --find-links dist --force-reinstall
- name: Python UnitTest - cramjam-python
run: |
python -m pytest cramjam-python -vs --ignore cramjam-python\benchmarks
Expand Down Expand Up @@ -149,7 +146,7 @@ jobs:
- name: Python UnitTest - cramjam-python
if: matrix.target == 'x86_64'
run: |
pip install cramjam[dev] --find-links dist --force-reinstall
pip install cramjam[dev] --pre --find-links dist --force-reinstall
python -m pytest cramjam-python -vs --ignore **/benchmarks
- name: Python UnitTest - cramjam-cli
if: matrix.target == 'x86_64'
Expand Down Expand Up @@ -264,9 +261,8 @@ jobs:
# TODO: I'm not sure but the actual collection of tests on windows using pypy3.10 takes forever and/or fails
if: ${{ matrix.python != 'pypy-3.10' && matrix.platform.os != 'windows-latest' }}
run: |
pip install cramjam[dev] --find-links dist --force-reinstall
cd cramjam-python
python -m pytest tests -v
pip install cramjam[dev] --pre --find-links dist --force-reinstall
python -m pytest cramjam-python -vs --ignore **/benchmarks
- name: cramjam-cli test
if: ${{ matrix.platform.os != 'windows-latest' }}
run: |
Expand Down

0 comments on commit 3bd98f0

Please sign in to comment.