Skip to content

Commit

Permalink
Merge branch 'main' into multiplex_selected_clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeilstenedmands committed Oct 16, 2024
2 parents 3eaf222 + 7744148 commit 828b254
Show file tree
Hide file tree
Showing 28 changed files with 283 additions and 345 deletions.
16 changes: 0 additions & 16 deletions .azure-pipelines/azure-pipelines-linux.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .azure-pipelines/azure-pipelines-mac.yml

This file was deleted.

81 changes: 0 additions & 81 deletions .azure-pipelines/azure-pipelines.yml

This file was deleted.

43 changes: 0 additions & 43 deletions .azure-pipelines/lint-validation.py

This file was deleted.

32 changes: 0 additions & 32 deletions .azure-pipelines/syntax-validation.py

This file was deleted.

112 changes: 0 additions & 112 deletions .azure-pipelines/unix-build.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 3.20.dev
current_version = 3.23.dev
commit = True
tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<release>[a-z]+)?(?P<patch>\d+)?
Expand Down
64 changes: 64 additions & 0 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
on:
push:
pull_request:
types:
- synchronize

env:
# Python minimum version is used for testing xia2
PYTHON_MINIMUM_VERSION: '3.9'

jobs:
build_test:
name: Build/Test
strategy:
fail-fast: false
matrix:
os: [ubuntu, macOS]
runs-on: ${{ matrix.os }}-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
path: modules/xia2
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_MINIMUM_VERSION }}
- name: Install Base Environment
shell: bash
run: |
wget https://raw.githubusercontent.com/dials/dials/main/installer/bootstrap.py
python bootstrap.py update base --python "${{ env.PYTHON_MINIMUM_VERSION }}"
micromamba/micromamba install -p ./conda_base -c conda-forge -y \
ninja dials-data pytest-azurepipelines pytest-cov pytest-timeout pytest-md
echo "$(pwd)/conda_base/bin" >> $GITHUB_PATH
- name: Build
env:
CMAKE_GENERATOR: Ninja
run: python bootstrap.py build
- name: Prepare for cache restoration
shell: bash
run: |
set -x
find . -name "dials.data*"
echo "DIALS_DATA_VERSION_FULL=$(dials.data info -v | grep version.full)" >> $GITHUB_ENV
echo "DIALS_DATA_VERSION=$(dials.data info -v | grep version.major_minor)" >> $GITHUB_ENV
echo "DIALS_DATA=${PWD}/data" >> $GITHUB_ENV
echo "CURRENT_WEEK=$(date +W%W)" >> $GITHUB_ENV
echo "TODAY_ISO=$(date +%Y%m%d)" >> $GITHUB_ENV
- name: Restore Cache
uses: actions/cache@v4
with:
key: ${{ env.CURRENT_WEEK }}-${{ env.DIALS_DATA_VERSION }}-${{ env.TODAY_ISO }}-${{ env.DIALS_DATA_VERSION_FULL }}
restore-keys: |
${{ env.CURRENT_WEEK }}-${{ env.DIALS_DATA_VERSION }}-${{ env.TODAY_ISO }}-
${{ env.CURRENT_WEEK }}-${{ env.DIALS_DATA_VERSION }}-
path: ${{ github.workspace }}/data
- name: Run pytest
uses: pavelzw/pytest-action@510c5e90c360a185039bea56ce8b3e7e51a16507 # v2.2.0
with:
verbose: true
emoji: false
job-summary: true
custom-arguments: modules/xia2 --regression --regression-full --timeout=5400
click-to-expand: true
7 changes: 2 additions & 5 deletions .github/workflows/merge-conflicts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,11 @@ on:

jobs:
label:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- name: Label Conflicting Pull Requests
uses: eps1lon/actions-label-merge-conflict@72a2cf9eb9640428abbd99bc0aa6dd522073b9d3
# This is tagged version v1.2.3, but do not use version tags
# https://julienrenaux.fr/2019/12/20/github-actions-security-risk/
uses: eps1lon/actions-label-merge-conflict@1b1b1fcde06a9b3d089f3464c96417961dde1168
with:
dirtyLabel: 'PR: merge conflicts'
removeOnDirtyLabel: 'PR: ready to ship'
repoToken: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit 828b254

Please sign in to comment.