Skip to content

move strategy

move strategy #3

Workflow file for this run

name: CI

Check failure on line 1 in .github/workflows/unit-test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/unit-test.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: strategy
on:
push:
branches: ["main"]
pull_request:
branches: ["*"]
jobs:
strategy:
matrix:
python-version: ["py310", "py311", "py312"]
doctest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pixi
run: curl -fsSL https://pixi.sh/install.sh | bash && echo "$HOME/.pixi/bin" >> $GITHUB_PATH
- name: Test
run: |
pixi run --locked --environment test-all-${{ matrix.python-version }} \
pytest -v ecoscope_workflows/ --doctest-modules --ignore=ecoscope_workflows/visualize.py
test-core:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pixi
run: curl -fsSL https://pixi.sh/install.sh | bash && echo "$HOME/.pixi/bin" >> $GITHUB_PATH
- name: Test
run: | # todo: move end-to-end tests to examples build dirs and remove `-k` flag
pixi run --locked --environment test-all-${{ matrix.python-version }} \
pytest -v tests --ignore tests/tasks -k "not test_end_to_end"
test-tasks-not-io:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pixi
run: curl -fsSL https://pixi.sh/install.sh | bash && echo "$HOME/.pixi/bin" >> $GITHUB_PATH
- name: Test
run: pixi run --locked --environment test-all-${{ matrix.python-version }} pytest -v tests/tasks -m "not io"
test-tasks-io:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pixi
run: curl -fsSL https://pixi.sh/install.sh | bash && echo "$HOME/.pixi/bin" >> $GITHUB_PATH
- name: Test
env:
EARTHRANGER_SERVER: ${{ secrets.EARTHRANGER_SERVER }}
EARTHRANGER_USERNAME: ${{ secrets.EARTHRANGER_USERNAME }}
EARTHRANGER_PASSWORD: ${{ secrets.EARTHRANGER_PASSWORD }}
run: pixi run --locked --environment test-all-${{ matrix.python-version }} pytest -v tests/tasks -m "io"
test-e2e: # todo: move end-to-end tests to examples build dirs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pixi
run: curl -fsSL https://pixi.sh/install.sh | bash && echo "$HOME/.pixi/bin" >> $GITHUB_PATH
- name: Test
run: |
pixi run --locked --environment test-all-${{ matrix.python-version }} \
pytest -v tests/test_examples.py -k "end_to_end"