diff --git a/.github/workflows/Lint.yml b/.github/workflows/Lint.yml index 4f576097..f9a48a7a 100644 --- a/.github/workflows/Lint.yml +++ b/.github/workflows/Lint.yml @@ -12,7 +12,7 @@ env: jobs: lint: runs-on: ubuntu-latest - timeout-minutes: 2 + timeout-minutes: 10 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/test-notebooks.yml b/.github/workflows/test-notebooks.yml index d3358cdf..d859842e 100644 --- a/.github/workflows/test-notebooks.yml +++ b/.github/workflows/test-notebooks.yml @@ -2,15 +2,13 @@ name: "Test notebooks" on: [push, workflow_dispatch] -concurrency: - group: ${{ github.repository }}-${{ github.ref }}-${{ github.head_ref }} - cancel-in-progress: true - jobs: tests: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Set up Python uses: actions/setup-python@v5 with: @@ -19,5 +17,18 @@ jobs: run: | python -m pip install -U -r requirements.txt python -m pip install -U pytest + + - name: Get changed files + id: changed-files + run: | + if ${{ github.event_name == 'push' }}; then + echo "changed_files=$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }} | xargs)" >> $GITHUB_OUTPUT + fi + - name: List changed files + run: | + for file in ${{ steps.changed-files.outputs.changed_files }}; do + echo "$file was changed" + done + - name: 'Run tests' run: python -m pytest tests diff --git a/pyproject.toml b/pyproject.toml index 7b6ed272..79833d2a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,5 @@ [tool.pytest.ini_options] python_files = "test_*.py" -timeout_method = "thread" [tool.isort] profile = "black"