Skip to content

Commit 235c557

Browse files
authored
Merge pull request #22 from Materials-Data-Science-and-Informatics/dev
Add missing part of CI workflow
2 parents 23a3c8e + 6b93935 commit 235c557

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
# Main CI pipeline of the repository.
3+
#
4+
# Overview:
5+
# Lint --> test doc build -\
6+
# \-> test code ---> deploy docs (*) -> release (**)
7+
#
8+
# (*): only on push of primary branches + release tags
9+
# (**): only for release version tags (vX.Y.Z)
10+
11+
on:
12+
push:
13+
branches: [main, dev]
14+
tags: ["v*.*.*"]
15+
pull_request:
16+
types: [opened, reopened, synchronize, ready_for_review]
17+
18+
jobs:
19+
publish:
20+
# if a version tag is pushed + tests + docs completed -> do release
21+
# needs: docs
22+
if: startswith(github.ref, 'refs/tags/v')
23+
permissions:
24+
contents: write # for GitHub release
25+
id-token: write # for PyPI release
26+
27+
uses: "./.github/workflows/release.yml"
28+
with:
29+
to_github: true
30+
to_test_pypi: true
31+
to_pypi: true

0 commit comments

Comments
 (0)