Skip to content

Commit

Permalink
test restructure
Browse files Browse the repository at this point in the history
  • Loading branch information
toruseo committed Mar 21, 2024
1 parent d4bf5a8 commit e3ce9c9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 55 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/run-examples.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run Python examples
name: Run examples

on:
push:
Expand All @@ -10,12 +10,15 @@ on:
jobs:
run-examples:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: ${{ matrix.python-version }}
- name: Install uxsim and dependencies
run: pip install .
- name: Install pytest other dependencies
Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/run-verifications_random.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/run-verifications_sioux_falls.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run Python verifications (deterministic)
name: Verify module

on:
push:
Expand All @@ -8,8 +8,11 @@ on:
- cron: '0 6 * * 1'

jobs:
run-verifications:
verify-module:
runs-on: ubuntu-latest
strategy:
matrix:
test-script: [tests/test_verification_straight_road.py, tests/test_verification_route_choice.py tests/test_verification_node.py, tests/test_verification_sioux_falls.py]
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
Expand All @@ -21,4 +24,4 @@ jobs:
- name: Install pytest other dependencies
run: pip install pytest pytest-rerunfailures setuptools
- name: Run verifications with pytest
run: pytest tests/test_verification_straight_road.py --durations=0 -v
run: pytest ${{ matrix.test-script }} --durations=0 -v

0 comments on commit e3ce9c9

Please sign in to comment.