|
9 | 9 |
|
10 | 10 | jobs: |
11 | 11 | build: |
12 | | - |
13 | 12 | runs-on: ubuntu-latest |
14 | 13 |
|
15 | 14 | steps: |
16 | | - - uses: actions/checkout@v2 |
17 | | - - name: Set up Python 3.9 |
18 | | - uses: actions/setup-python@v2 |
19 | | - with: |
20 | | - python-version: 3.9 |
21 | | - - name: Install dependencies |
22 | | - run: | |
23 | | - python -m pip install --upgrade pip |
24 | | - pip install flake8 pytest tox |
25 | | - # - name: Lint with flake8 |
26 | | - # run: | |
27 | | - # # stop the build if there are Python syntax errors or undefined names |
28 | | - # flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics |
29 | | - # # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide |
30 | | - # # flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics |
31 | | - - name: Test with tox |
32 | | - run: | |
33 | | - tox |
34 | | - - name: Build docs |
35 | | - run: | |
36 | | - tox -e docs |
37 | | - - run: touch ./docs/_build/html/.nojekyll |
38 | | - - name: GH Pages Deployment |
39 | | - |
40 | | - with: |
41 | | - branch: gh-pages # The branch the action should deploy to. |
42 | | - folder: ./docs/_build/html |
43 | | - clean: true # Automatically remove deleted files from the deploy branch |
44 | | - - name: Build Project and Publish |
45 | | - run: | |
46 | | - python -m tox -e clean,build |
47 | | - - name: Publish package |
48 | | - uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 |
49 | | - with: |
50 | | - user: __token__ |
51 | | - password: ${{ secrets.PYPI_PASSWORD }} |
| 15 | + - uses: actions/checkout@v4 |
| 16 | + |
| 17 | + - name: Set up Python 3.11 |
| 18 | + uses: actions/setup-python@v5 |
| 19 | + with: |
| 20 | + python-version: 3.11 |
| 21 | + |
| 22 | + - name: Install dependencies |
| 23 | + run: | |
| 24 | + python -m pip install --upgrade pip |
| 25 | + pip install tox |
| 26 | +
|
| 27 | + - name: Test with tox |
| 28 | + run: | |
| 29 | + tox |
| 30 | +
|
| 31 | + - name: Build docs |
| 32 | + run: | |
| 33 | + tox -e docs |
| 34 | +
|
| 35 | + - run: touch ./docs/_build/html/.nojekyll |
| 36 | + |
| 37 | + - name: GH Pages Deployment |
| 38 | + uses: JamesIves/github-pages-deploy-action@v4 |
| 39 | + with: |
| 40 | + branch: gh-pages # The branch the action should deploy to. |
| 41 | + folder: ./docs/_build/html |
| 42 | + clean: true # Automatically remove deleted files from the deploy branch |
| 43 | + |
| 44 | + - name: Build Project and Publish |
| 45 | + run: | |
| 46 | + python -m tox -e clean,build |
| 47 | +
|
| 48 | + - name: Publish package |
| 49 | + |
| 50 | + with: |
| 51 | + user: __token__ |
| 52 | + password: ${{ secrets.PYPI_PASSWORD }} |
0 commit comments