Skip to content

Commit

Permalink
flip build order so that main build is first
Browse files Browse the repository at this point in the history
  • Loading branch information
GiovanniBussi committed May 21, 2024
1 parent 5336ef9 commit 235cdda
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.12", "3.11", "3.10", "3.9"]
os: [ubuntu-latest, macos-12, macos-14]

steps:
Expand Down Expand Up @@ -44,13 +44,13 @@ jobs:
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 MDRefine bin --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | tee flake8_report.txt
- name: Upload flake8_report.txt to artifact
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11' }}
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12' }}
uses: actions/upload-artifact@v3
with:
path: flake8_report.txt
name: flake8_report
- name: Doc
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11' }}
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12' }}
run: |
pip install --upgrade pdoc3 jupyter nbconvert
pdoc3 -f --html -o doc/ MDRefine
Expand All @@ -61,14 +61,14 @@ jobs:
( sudo apt-get install pandoc texlive-xetex && pdoc3 -f --pdf MDRefine > MDRefine.md && pandoc --metadata=title:"MDRefine Documentation" --from=markdown+abbreviations+tex_math_single_backslash --pdf-engine=xelatex --toc --toc-depth=4 --output=doc/MDRefine.pdf MDRefine.md )
tar czf doc.tgz doc/
- name: Upload doc to artifact
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11' }}
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12' }}
uses: actions/upload-artifact@v3
with:
path: doc.tgz
name: doc

- name: Deploy PyPI
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11' && startsWith(github.ref, 'refs/tags/') }}
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12' && startsWith(github.ref, 'refs/tags/') }}
env:
MDREFINE_PYPI: ${{ secrets.MDREFINE_PYPI }}
run: |
Expand Down

0 comments on commit 235cdda

Please sign in to comment.