Skip to content

Commit 60db50e

Browse files
Initial CI
1 parent 4724742 commit 60db50e

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
pre-commit:
11+
name: Lint
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.11'
18+
- uses: pre-commit/[email protected]
19+
test:
20+
name: Test
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
- name: Set up Python ${{ matrix.python-version }}
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: '3.11'
29+
- name: Install dependencies
30+
run: |
31+
python -m pip install --upgrade pip
32+
python -m pip install '.[dev]'
33+
34+
- name: Run tests
35+
run: |
36+
pytest --cov=sc2ts
37+
# - name: Upload coverage to Coveralls
38+
# uses: coverallsapp/[email protected]
39+
# with:
40+
# github-token: ${{ secrets.GITHUB_TOKEN }}
41+
# # The first coveralls upload will succeed and others seem to fail now.
42+
# # This is a quick workaround for doing a proper "parallel" setup:
43+
# # https://github.com/coverallsapp/github-action
44+
# fail-on-error: false

pyproject.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,24 @@ requires = [
66
]
77
build-backend = "setuptools.build_meta"
88

9+
[project]
10+
name = "sc2ts"
11+
description = "Infer ARGs in tskit format for SARS-Cov2"
12+
readme = "README.md"
13+
license = {file = "LICENSE"}
14+
authors = [
15+
{name = "FIXME", email = "FIXME"},
16+
]
17+
dependencies = [
18+
"tsinfer",
19+
"pyfaidx",
20+
]
21+
22+
[project.optional-dependencies]
23+
dev = [
24+
"pytest",
25+
"pytest-coverage",
26+
]
27+
928
[tool.setuptools_scm]
1029
write_to = "sc2ts/_version.py"

0 commit comments

Comments
 (0)