Skip to content

Commit c333eac

Browse files
committed
👷 Added nightly workflows
1 parent 653950c commit c333eac

File tree

4 files changed

+59
-18
lines changed

4 files changed

+59
-18
lines changed

.github/workflows/test_cli_macos.yaml renamed to .github/workflows/test_cli_macos_nightlies.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
name: Simvue-CLI (macOS)
1+
name: CLI Nightlies (macOS)
22
on:
3-
push:
4-
branches: ["main", "dev"]
5-
pull_request:
6-
branches: ["main", "dev"]
73
workflow_dispatch:
4+
schedule:
5+
- cron: '45 22 * * *'
86

97
permissions:
108
contents: read
@@ -28,10 +26,13 @@ jobs:
2826
- name: Install Dependencies
2927
run: |
3028
python -m pip install poetry
31-
poetry install --all-extras
29+
poetry self add poetry-plugin-export
30+
poetry export -f requirements.txt --with dev -o requirements.txt --all-extras
31+
python -m pip install -r requirements.txt
32+
python -m pip install .
3233
- name: Run Tests
3334
env:
3435
SIMVUE_URL: ${{ secrets.SIMVUE_URL }}
3536
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
3637
run: |
37-
poetry run pytest -x --cov=simvue_cli --cov-report=term --cov-report=xml -c /dev/null -p no:warnings -v
38+
python -m pytest -x --cov=simvue_cli --cov-report=term --cov-report=xml -c /dev/null -p no:warnings -v

.github/workflows/test_cli_ubuntu.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
name: Simvue-CLI (Ubuntu)
22
on:
3-
push:
4-
branches: ["main", "dev"]
53
pull_request:
64
branches: ["main", "dev"]
75
workflow_dispatch:
@@ -28,10 +26,13 @@ jobs:
2826
- name: Install Dependencies
2927
run: |
3028
python -m pip install poetry
31-
poetry install --all-extras
29+
poetry self add poetry-plugin-export
30+
poetry export -f requirements.txt --with dev -o requirements.txt --all-extras
31+
python -m pip install -r requirements.txt
32+
python -m pip install .
3233
- name: Run Tests
3334
env:
3435
SIMVUE_URL: ${{ secrets.SIMVUE_URL }}
3536
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
3637
run: |
37-
poetry run pytest -x --cov=simvue_cli --cov-report=term --cov-report=xml -c /dev/null -p no:warnings -v
38+
python -m pytest -x --cov=simvue_cli --cov-report=term --cov-report=xml -c /dev/null -p no:warnings -v
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CLI Nightlies (Ubuntu)
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '0 22 * * *'
6+
7+
permissions:
8+
contents: read
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
test_build:
16+
name: Test CLI
17+
timeout-minutes: 20
18+
runs-on: ["ubuntu-latest"]
19+
steps:
20+
- name: Retrieve Code
21+
uses: actions/checkout@v4
22+
- name: Setup Python
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: '3.x'
26+
- name: Install Dependencies
27+
run: |
28+
python -m pip install poetry
29+
poetry self add poetry-plugin-export
30+
poetry export -f requirements.txt --with dev -o requirements.txt --all-extras
31+
python -m pip install -r requirements.txt
32+
python -m pip install .
33+
- name: Run Tests
34+
env:
35+
SIMVUE_URL: ${{ secrets.SIMVUE_URL }}
36+
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
37+
run: |
38+
python -m pytest -x --cov=simvue_cli --cov-report=term --cov-report=xml -c /dev/null -p no:warnings -v

.github/workflows/test_cli_windows.yaml renamed to .github/workflows/test_cli_windows_nightlies.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
name: Simvue-CLI (Windows)
1+
name: CLI Nightlies (Windows)
22
on:
3-
push:
4-
branches: ["main", "dev"]
5-
pull_request:
6-
branches: ["main", "dev"]
73
workflow_dispatch:
4+
schedule:
5+
- cron: '30 22 * * *'
86

97
permissions:
108
contents: read
@@ -28,10 +26,13 @@ jobs:
2826
- name: Install Dependencies
2927
run: |
3028
python -m pip install poetry
31-
poetry install --all-extras
29+
poetry self add poetry-plugin-export
30+
poetry export -f requirements.txt --with dev -o requirements.txt --all-extras
31+
python -m pip install -r requirements.txt
32+
python -m pip install .
3233
- name: Run Tests
3334
env:
3435
SIMVUE_URL: ${{ secrets.SIMVUE_URL }}
3536
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
3637
run: |
37-
poetry run pytest -x --cov=simvue_cli --cov-report=term --cov-report=xml -c /dev/null -p no:warnings -v
38+
python -m pytest -x --cov=simvue_cli --cov-report=term --cov-report=xml -c /dev/null -p no:warnings -v

0 commit comments

Comments
 (0)