-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (44 loc) · 1.1 KB
/
build.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
50
51
52
53
54
55
56
name: build
on:
release:
types: [published]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/project/xdatbus/
permissions:
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-activate-base: true
python-version: '3.11'
- name: Install PLUMED
run: |
conda install -c conda-forge plumed
- name: Install Poetry
run: |
pipx install poetry
poetry config virtualenvs.create true
- name: Install dependencies with Poetry
run: |
poetry install
- name: Run tests
run: poetry run pytest --cov=xdatbus
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Build package with Poetry
run: poetry build