Repository navigation
61 lines (51 loc) · 1.74 KB
/
Copy pathci.yml
File metadata and controls
61 lines (51 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
################################################################################################
# Formatting: Check formatting using Pixi
################################################################################################
format:
if: github.event.pull_request.merged != true || github.ref != 'refs/heads/main'
permissions:
contents: read # for actions/checkout to fetch code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Pixi
uses: prefix-dev/setup-pixi@v0.9.6
with:
environments: format
pixi-version: v0.69.0
cache: false
locked: false
- name: Run snakefmt
run: pixi run -e format snakefmt workflow/Snakefile workflow/rules/*.smk --check --diff
################################################################################################
# Testing: Run tests using Pixi
################################################################################################
test:
if: github.event.pull_request.merged != true || github.ref != 'refs/heads/main'
strategy:
fail-fast: false
runs-on: ubuntu-latest
env:
SQL_DRIVER: sqlite
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Pixi
uses: prefix-dev/setup-pixi@v0.9.6
with:
environments: test
pixi-version: v0.69.0
cache: false
locked: false
- name: Set strict conda channel priority
run: conda config --set channel_priority strict
- name: Run examples
run: pixi run -e test env --chdir ./examples/ ./make_dags.sh