@@ -4,14 +4,13 @@ on: [push, pull_request]
44
55jobs :
66 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]
1212
13- # runs-on: ${{ matrix.os }}
14- runs-on : windows-latest
13+ runs-on : ${{ matrix.os }}
1514 steps :
1615 - name : Check-out repository
1716 uses : actions/checkout@v2
2019 uses : s-weigand/setup-conda@v1
2120 with :
2221 update-conda : true
23- # python-version: ${{ matrix.python-version }}
24- python-version : ' 3.8'
22+ python-version : ${{ matrix.python-version }}
2523
2624 - name : Install dependencies
2725 run : |
@@ -31,70 +29,33 @@ jobs:
3129 conda install -c conda-forge pip
3230 conda install -c conda-forge gsl
3331
34- - name : Build package
32+ - name : Build wheels
3533 run : |
3634 python setup.py sdist bdist_wheel
37- ls -l ${{ github.workspace }}
38- ls -l ${{ github.workspace }}/dist
39- ls -l ${{ github.workspace }}/build
4035
41- upload :
42- needs : build
43- runs-on : ubuntu-latest
44- steps :
45-
46- - name : show content
36+ - name : Run tests
4737 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
5041
51- - uses : actions/upload-artifact@v2
42+ - name : Upload Artifacts GitHub releases
43+ uses : ncipollo/release-action@v1
5244 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
5860 # 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- # GIT_EMAIL: action@github.com
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