-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
194 additions
and
152 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Test IO | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "*" ] | ||
|
||
jobs: | ||
dev: | ||
uses: ./.github/workflows/tests.yml | ||
with: | ||
io: "io" | ||
os: "ubuntu-latest" | ||
secrets: inherit |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Tests | ||
name: Tests Main | ||
|
||
on: | ||
push: | ||
|
@@ -7,42 +7,8 @@ on: | |
branches: [ "*" ] | ||
|
||
jobs: | ||
Test: | ||
name: ${{ matrix.os }}, ${{ matrix.env }} | ||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
shell: bash -leo pipefail {0} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
env: [environment.yml] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Micromamba | ||
uses: mamba-org/[email protected] | ||
with: | ||
environment-file: ${{ matrix.env }} | ||
cache-environment: true | ||
cache-downloads: true | ||
init-shell: bash powershell | ||
|
||
- name: Install pip dependencies and our package | ||
shell: bash -leo pipefail {0} | ||
run: | | ||
python -m pip install ".[all]" | ||
- name: Test | ||
env: | ||
ER_USERNAME: ${{ secrets.ER_USERNAME }} | ||
ER_PASSWORD: ${{ secrets.ER_PASSWORD }} | ||
EE_ACCOUNT: ${{ secrets.EE_ACCOUNT }} | ||
EE_PRIVATE_KEY_DATA: ${{ secrets.EE_PRIVATE_KEY_DATA }} | ||
run: | | ||
pytest -v -r s --color=yes --cov=ecoscope --cov-append --cov-report=xml | ||
- name: Codecov | ||
uses: codecov/codecov-action@v5 | ||
dev: | ||
uses: ./.github/workflows/tests.yml | ||
with: | ||
io: "not io" | ||
os: "ubuntu-latest" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Test Daily | ||
|
||
on: | ||
schedule: | ||
# Per https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule | ||
# Make this a weird time | ||
- cron: "23 5 * * *" | ||
workflow_dispatch: {} | ||
|
||
|
||
jobs: | ||
ubuntu: | ||
uses: ./.github/workflows/tests.yml | ||
with: | ||
io: "io or not io" | ||
os: "ubuntu-latest" | ||
secrets: inherit | ||
mac: | ||
uses: ./.github/workflows/tests.yml | ||
# The If Always/Needs combo here is so that these tests can be | ||
# run sequentially but don't care about eachother failing | ||
# We want to run sequentially to minimise the load on mep-dev | ||
if: ${{ always() }} | ||
needs: [ubuntu] | ||
with: | ||
io: "io or not io" | ||
os: "macos-latest" | ||
secrets: inherit | ||
windows: | ||
uses: ./.github/workflows/tests.yml | ||
if: ${{ always() }} | ||
needs: [ubuntu, mac] | ||
with: | ||
io: "io or not io" | ||
os: "windows-latest" | ||
secrets: inherit |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Tests | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
io: | ||
type: string | ||
required: true | ||
os: | ||
type: string | ||
required: true | ||
|
||
jobs: | ||
Test: | ||
name: ${{ inputs.os }}, ${{ inputs.io }} | ||
runs-on: ${{ inputs.os }} | ||
defaults: | ||
run: | ||
shell: bash -leo pipefail {0} | ||
strategy: | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Micromamba | ||
uses: mamba-org/[email protected] | ||
with: | ||
environment-file: environment.yml | ||
cache-environment: true | ||
init-shell: bash powershell | ||
|
||
- name: Install our package | ||
run: | | ||
python -m pip install ".[all]" | ||
- name: Test | ||
env: | ||
ER_USERNAME: ${{ secrets.ER_USERNAME }} | ||
ER_PASSWORD: ${{ secrets.ER_PASSWORD }} | ||
EE_ACCOUNT: ${{ secrets.EE_ACCOUNT }} | ||
EE_PRIVATE_KEY_DATA: ${{ secrets.EE_PRIVATE_KEY_DATA }} | ||
run: | | ||
pytest -v -r s -m "${{ inputs.io }}" --color=yes --cov=ecoscope --cov-append --cov-report=xml | ||
- name: Codecov | ||
uses: codecov/codecov-action@v5 |
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
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
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
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
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
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Oops, something went wrong.