-
-
Notifications
You must be signed in to change notification settings - Fork 17
49 lines (42 loc) · 1.36 KB
/
main.yml
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
name: singularity-compose ci
on:
push:
branches:
- master
pull_request:
branches_ignore: []
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: singularityhub/install-singularity@main
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest semver pytest-runner requests
pip install .[all]
- name: Run unit tests
run: |
which singularity
sudo cp /usr/local/bin/singularity /usr/bin/singularity
pytest -sv scompose/tests/test_depends_on.py
pytest -sv scompose/tests/test_client.py
pytest -sv scompose/tests/test_utils.py
pytest -sv scompose/tests/test_config.py
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup black environment
run: conda create --quiet --name black
- name: Check Spelling
uses: crate-ci/typos@7ad296c72fa8265059cc03d1eda562fbdfcd6df2 # v1.9.0
with:
files: ./docs/*.md ./docs/*/*.md ./README.md .docs/*.rst .docs/*/*.rst
- name: Lint and format Python code
run: |
export PATH="/usr/share/miniconda/bin:$PATH"
source activate black
pip install -r .github/dev-requirements.txt
pre-commit run --all-files