File tree 7 files changed +29
-23
lines changed
7 files changed +29
-23
lines changed Original file line number Diff line number Diff line change @@ -15,18 +15,14 @@ jobs:
15
15
shell : bash -l {0}
16
16
17
17
steps :
18
- - uses : actions/checkout@v2
18
+ - uses : actions/checkout@v4.2.2
19
19
- uses : mamba-org/setup-micromamba@v1
20
20
with :
21
21
generate-run-shell : true
22
22
environment-file : environment.yml
23
- create-args : >-
24
- python=${{ matrix.python-version }}
25
-
26
23
- name : Install floatCSEP
27
24
run : |
28
- pip install -r requirements_dev.txt
29
- pip install --no-deps -e .
25
+ pip install -e .[dev]
30
26
python -c "import floatcsep; print('Version: ', floatcsep.__version__)"
31
27
32
28
- name : Build documentation
Original file line number Diff line number Diff line change 21
21
shell : bash -l {0}
22
22
23
23
steps :
24
- - uses : actions/checkout@v2
24
+ - uses : actions/checkout@v4.2.2
25
25
- uses : mamba-org/setup-micromamba@v1
26
26
with :
27
27
generate-run-shell : true
@@ -32,15 +32,16 @@ jobs:
32
32
33
33
- name : Install floatCSEP
34
34
run : |
35
- pip install pytest pytest-cov vcrpy==4.3.1
36
- pip install --no-deps -e .
35
+ pip install -e .[dev]
37
36
python -c "import floatcsep; print('Version: ', floatcsep.__version__)"
38
37
39
38
- name : Test with pytest
40
39
run : |
41
- pytest --durations=0 --cov=./ --cov-config=.coveragerc
40
+ pytest --durations=0
42
41
43
42
- name : Upload coverage
44
43
if : matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'
45
- run : |
46
- bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }}
44
+ uses : codecov/codecov-action@v3
45
+ with :
46
+ token : ${{ secrets.CODECOV_TOKEN }}
47
+ fail_ci_if_error : false
Original file line number Diff line number Diff line change 15
15
shell : bash -l {0}
16
16
17
17
steps :
18
- - uses : actions/checkout@v2
18
+ - uses : actions/checkout@v4.2.2
19
19
- uses : mamba-org/setup-micromamba@v1
20
20
with :
21
21
generate-run-shell : true
@@ -25,14 +25,19 @@ jobs:
25
25
26
26
- name : Install py-build and setuptools-scm
27
27
run : |
28
- micromamba run -n floatcsep python3 -m pip install --upgrade build setuptools-scm
28
+ micromamba run -n floatcsep pip install --upgrade build setuptools-scm
29
29
30
30
- name : Build
31
31
run : |
32
32
micromamba run -n floatcsep python3 -m build --sdist --wheel --outdir dist/
33
33
34
+ - name : Check distribution files
35
+ run : |
36
+ micromamba run -n floatcsep pip install twine
37
+ micromamba run -n floatcsep twine check dist/*
38
+
34
39
- name : Publish Package
35
- uses : pypa/gh-action-pypi-publish@v1.9.0
40
+ uses : pypa/gh-action-pypi-publish@v1.12.4
36
41
with :
37
42
user : __token__
38
43
password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change @@ -10,14 +10,14 @@ jobs:
10
10
11
11
steps :
12
12
- name : Check out the code
13
- uses : actions/checkout@v3
13
+ uses : actions/checkout@v4.2.2
14
14
15
15
- name : Zip the tutorials folder
16
16
run : |
17
17
zip -r tutorials.zip tutorials/
18
18
19
19
- name : Upload the tutorials.zip to the release
20
- uses : softprops/action-gh-release@v1
20
+ uses : softprops/action-gh-release@v2.2.2
21
21
with :
22
22
files : tutorials.zip
23
23
env :
Original file line number Diff line number Diff line change 1
1
version : 2
2
2
3
3
build :
4
- os : " ubuntu-20 .04"
4
+ os : " ubuntu-22 .04"
5
5
tools :
6
- python : " mambaforge-4.10 "
6
+ python : " mambaforge-22.9 "
7
7
8
8
conda :
9
9
environment : environment.yml
@@ -12,5 +12,9 @@ python:
12
12
install :
13
13
- method : pip
14
14
path : .
15
- - method : pip
16
- path : .[dev] # Install development dependencies via pip
15
+ extra_requirements :
16
+ - dev
17
+ editable : true
18
+
19
+ sphinx :
20
+ configuration : docs/conf.py
Original file line number Diff line number Diff line change @@ -32,5 +32,5 @@ sphinx-toolbox
32
32
sphinx_copybutton
33
33
tables
34
34
tox
35
- vcrpy==4.3.1
35
+ vcrpy
36
36
xmltodict
Original file line number Diff line number Diff line change 80
80
sphinx_copybutton
81
81
tables
82
82
tox
83
- vcrpy ==4.3.1
83
+ vcrpy
84
84
xmltodict
85
85
86
86
[options.entry_points]
You can’t perform that action at this time.
0 commit comments