move strategy #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | ||
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" |