|
7 | 7 | # You can use PyPy versions in python-version. |
8 | 8 | # For example, pypy-2.7 and pypy-3.8 |
9 | 9 | matrix: |
10 | | - python-version: ["3.8", "3.9", "3.10"] |
| 10 | + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] |
11 | 11 | outputs: |
12 | 12 | version_changed: ${{ steps.check_file_changed.outputs.files_changed }} |
13 | 13 | steps: |
14 | | - - run: pip install -U pip pipenv coverage |
| 14 | + - run: pip install -U pip pipenv coverage build |
15 | 15 | - run: pip install -U numpy scipy matplotlib |
16 | 16 | - name: Check out repository code |
17 | 17 | uses: actions/checkout@v4 |
18 | 18 | - run: set -o pipefail |
19 | 19 | - name: Build and install fluidfoam |
20 | 20 | run: | |
21 | | - cd ${{ github.workspace }} && python setup.py develop --user |
| 21 | + cd ${{ github.workspace }} && python -m build && pip install dist/fluidfoam*.whl --user |
22 | 22 | - name: Test fluidfoam |
23 | 23 | run: make tests |
24 | 24 | - name: Test fluidfoam coverage |
|
28 | 28 | with: |
29 | 29 | token: ${{ secrets.codecov }} |
30 | 30 | fail_ci_if_error: true |
31 | | - files: ./.coverage/coverage.xml |
| 31 | + files: ./coverage.xml |
32 | 32 | flags: unittests |
33 | 33 | name: codecov-umbrella |
34 | 34 | verbose: true |
|
44 | 44 | uses: casperdcl/deploy-pypi@v2 |
45 | 45 | with: |
46 | 46 | password: ${{ secrets.PYPI_TOKEN }} |
47 | | - pip: wheel -w dist/ --no-deps . |
| 47 | + build: --sdist --wheel --outdir dist . |
| 48 | + # old version : pip: wheel -w dist/ --no-deps . |
48 | 49 | # only upload if a tag is pushed (otherwise just build & check) |
49 | 50 | upload: ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') }} |
0 commit comments