Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
name: Publish Services to GHCR

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_run:
workflows: [Test]
types:
- completed

jobs:
build:
Expand All @@ -17,6 +15,7 @@ jobs:
DASHBOARD_SERVICE_IMAGE_NAME: intersect-service
STORAGE_SERVICE_IMAGE_NAME: intersect-storage

if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Test

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
conda-version: "24.11.2"
auto-activate-base: false

- name: Install dependencies
run: |
conda env create -f config/environment.yaml
conda run --no-capture-output -n espd_mantid pip install pytest

- name: Run tests
run: |
conda run --no-capture-output -n espd_mantid python -m pytest
Loading