@@ -4,14 +4,13 @@ on: [push, pull_request]
4
4
5
5
jobs :
6
6
build :
7
- # strategy:
8
- # max-parallel: 4
9
- # matrix:
10
- # python-version: ['3.8', '3.9', '3.10']
11
- # os: [ubuntu-latest, macos-latest, windows-latest]
7
+ strategy :
8
+ max-parallel : 4
9
+ matrix :
10
+ python-version : ['3.8', '3.9', '3.10']
11
+ os : [ubuntu-latest, macos-latest, windows-latest]
12
12
13
- # runs-on: ${{ matrix.os }}
14
- runs-on : windows-latest
13
+ runs-on : ${{ matrix.os }}
15
14
steps :
16
15
- name : Check-out repository
17
16
uses : actions/checkout@v2
20
19
uses : s-weigand/setup-conda@v1
21
20
with :
22
21
update-conda : true
23
- # python-version: ${{ matrix.python-version }}
24
- python-version : ' 3.8'
22
+ python-version : ${{ matrix.python-version }}
25
23
26
24
- name : Install dependencies
27
25
run : |
@@ -31,70 +29,33 @@ jobs:
31
29
conda install -c conda-forge pip
32
30
conda install -c conda-forge gsl
33
31
34
- - name : Build package
32
+ - name : Build wheels
35
33
run : |
36
34
python setup.py sdist bdist_wheel
37
- ls -l ${{ github.workspace }}
38
- ls -l ${{ github.workspace }}/dist
39
- ls -l ${{ github.workspace }}/build
40
35
41
- upload :
42
- needs : build
43
- runs-on : ubuntu-latest
44
- steps :
45
-
46
- - name : show content
36
+ - name : Run tests
47
37
run : |
48
- ls -l ${{ github.workspace }}/../
49
- ls -l ${{ github.workspace }}/../dist
38
+ conda install -c conda-forge numpy
39
+ python setup.py install
40
+ python conda-recipe/run_test.py
50
41
51
- - uses : actions/upload-artifact@v2
42
+ - name : Upload Artifacts GitHub releases
43
+ uses : ncipollo/release-action@v1
52
44
with :
53
- name : diffpy2 - Python ${{ matrix.python-version }}
54
- path : ${{ github.workspace }}/dist/*.whl
55
-
56
- # - name: Upload zipped offline app installer to GitHub releases
57
- # uses: ncipollo/release-action@v1
45
+ draft : false
46
+ prerelease : true
47
+ allowUpdates : true
48
+ replacesArtifacts : true
49
+ token : ${{ secrets.GITHUB_TOKEN }}
50
+ artifacts : ${{ github.workspace }}/dist/*.whl
51
+ tag : 1.4.0
52
+ body : This is an alpha build of the pdffit2 library (1.4.0)
53
+
54
+ # This step will upload tagged commits to pypi.
55
+ # The pypi token must be added to GH secrets
56
+ #
57
+ # - name: Publish package
58
+ # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
59
+ # uses: pypa/gh-action-pypi-publish@release/v1
58
60
# with:
59
- # draft: true
60
- # prerelease: true
61
- # allowUpdates: true
62
- # replacesArtifacts: true
63
- # token: ${{ secrets.GITHUB_TOKEN }}
64
- # artifacts: dist/*.whl
65
- # tag: 1.4.1
66
- # body: This is an alpha build of diffpy2
67
-
68
-
69
- # upload:
70
- # steps:
71
- # - name: Checkout target repo
72
- # uses: actions/checkout@v3
73
- # env:
74
- # REPO: easyScience/pypi
75
- # REPO_PATH: pypi
76
- # with:
77
- # fetch-depth: 0
78
- # token: ${{ secrets.ES_TOKEN }}
79
- # repository: ${{ env.REPO }}
80
- # path: ${{ env.REPO_PATH }}
81
-
82
- # - name: Copy index to new repo
83
- # env:
84
- # SOURCE: index.html
85
- # TARGET: pypi/easysciencecore/
86
- # run: cp ${{ env.SOURCE }} ${{ env.TARGET }}
87
- # - name: Push
88
- # env:
89
- # REPO_PATH: pypi
90
- # GIT_USERNAME: action
91
-
92
- # run: |
93
- # cd ${{ env.REPO_PATH }}
94
- # git config --local user.name "${{ env.GIT_USERNAME }}"
95
- # git config --local user.email "${{ env.GIT_EMAIL }}"
96
- # git add .
97
- # if [[ `git status --porcelain` ]]; then
98
- # git commit -m "Github Actions Automatically Built in `date +"%Y-%m-%d %H:%M"`"
99
- # git push
100
- # fi
61
+ # password: ${{ secrets.PYPI_API_TOKEN }}
0 commit comments