Skip to content

Commit

Permalink
test ubuntu only
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhsmit committed Nov 25, 2024
1 parent 5f967db commit 9b06016
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ "ubuntu-latest", "macos-latest" , "windows-latest"]
python-version: ["3.10" ]
defaults:
run:
shell: bash
runs-on: ${{ matrix.os }}
# defaults:
# run:
# shell: bash
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand All @@ -26,20 +25,23 @@ jobs:
# Install a specific version of uv.
version: "0.5.4"

- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- name: Download test file windows
if: runner.os == 'Windows'
- name: Install dependencies
run: |
C:\\msys64\\usr\\bin\\wget.exe "https://filedn.eu/loRXwzWCNnU4XoFPGbllt1y/datafile_1.ptu" -O tests/test_data/input/ds1/datafile_1.ptu
- name: Download test file other platforms
if: runner.os != 'Windows'
python -m pip install uv
uv venv -p ${{ matrix.python-version }}
uv pip install -e .[test,web]
- name: Download test file
run: |
wget "https://filedn.eu/loRXwzWCNnU4XoFPGbllt1y/datafile_1.ptu" -O tests/test_data/input/ds1/datafile_1.ptu
- name: Install in editable mode with test requirements
run: uv pip install -p ${{ matrix.python-version }} -e .[test]
- name: Activate virtualenv
run: |
. .venv/bin/activate
echo PATH=$PATH >> $GITHUB_ENV
# - name: Install in editable mode with test requirements
# run: uv pip install -p ${{ matrix.python-version }} -e .[test]

- name: Run tests
run: |
Expand Down

0 comments on commit 9b06016

Please sign in to comment.