diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml deleted file mode 100644 index 25b4fa37..00000000 --- a/.github/workflows/CI.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: CI - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -on: - # Trigger on pull requests. - pull_request: - - # Trigger on pushes to the mainline branches. This prevents building commits twice when the pull - # request source branch is in the same repository. - push: - branches: - - "main" - - # Trigger on request. - workflow_dispatch: - -jobs: - flow-status: - name: flow-status - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4.1.7 - - name: Set up Python - uses: actions/setup-python@v5.1.0 - with: - python-version: '3.11' - - uses: actions/cache@v4.0.2 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('.github/workflows/requirements-test.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install signac - run: python3 -m pip install -r .github/workflows/requirements-test.txt - - name: Initialize workspace - run: python3 hoomd_validation/init.py - - name: Check flow status - run: python3 hoomd_validation/project.py status diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 00000000..a49f327e --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,36 @@ +name: test + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +on: + pull_request: + + push: + branches: + - "main" + + workflow_dispatch: + +jobs: + status: + name: Initialize and show status + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + - name: Set up Python + uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 + with: + python-version: "3.12" + - name: Set up Python environment + uses: glotzerlab/workflows/setup-uv@ea2e25d07af862a1c696a932c2bd6b242d142049 # 0.2.0 + with: + lockfile: ".github/workflows/requirements-test.txt" + - name: Initialize workspace + run: python3 hoomd_validation/project.py init + - name: Set up row + uses: glotzerlab/workflows/setup-row@eb2fa7acfe52cc995a323bce2e26c763a9dee632 # 0.3.0 + - name: Show project status + run: row show status