Skip to content

Commit

Permalink
TST: updating action scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
saullocastro committed Nov 20, 2023
1 parent 4ed9f51 commit e7e5342
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 20 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/auto_doc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Documentation
name: auto-doc

on:
push:
Expand All @@ -10,24 +10,24 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade -r ci_requirements_doc.txt
python -m pip install --upgrade pip
python -m pip install --upgrade -r ci_requirements_doc.txt
- name: Install module
run: |
python3 -m pip install .
python -m pip install .
- name: Building documentation
run: |
cd doc
make html
- name: Deploying documentation
uses: JamesIves/github-pages-deploy-action@v4
uses: JamesIves/github-pages-deploy-action@v4.4.3
with:
branch: gh-pages # The branch the action should deploy to.
folder: ./doc/build/html # The folder the action should deploy.
6 changes: 4 additions & 2 deletions .github/workflows/auto_release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: auto-release

on:
push:
Expand All @@ -10,6 +10,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/pytest_and_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
USE_COVERAGE: ${{ matrix.runs-on == 'ubuntu-latest' && matrix.python-version == '3.10' }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setting up OpenMP for Linux
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
pytest compmech
- name: Upload coverage to Codecov
if: env.USE_COVERAGE == 'true'
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_UPLOAD_TOKEN }}
fail_ci_if_error: true
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy
name: Upload Python Package

on:
push:
Expand All @@ -14,9 +14,9 @@ jobs:
runs-on: ${{ matrix.runs-on }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setting up OpenMP for Linux
Expand Down Expand Up @@ -47,20 +47,20 @@ jobs:
run: |
python3 -m twine upload dist/*.whl
- name: Publish source
if: matrix.runs-on == 'windows-latest' && matrix.python-version == '3.10'
if: matrix.runs-on == 'windows-latest' && matrix.python-version == '3.11'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python3 -m twine upload dist/*.tar.gz
- name: Build manylinux Python wheels
if: matrix.runs-on == 'ubuntu-latest' && matrix.python-version == '3.10'
uses: RalfG/python-wheels-manylinux-build@v0.6.0-manylinux2014_x86_64
if: matrix.runs-on == 'ubuntu-latest' && matrix.python-version == '3.11'
uses: RalfG/python-wheels-manylinux-build@v0.7.1-manylinux2014_x86_64
with:
python-versions: 'cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311'
build-requirements: 'pip cython numpy setuptools wheel twine'
build-requirements: 'pip cython numpy scipy setuptools wheel twine'
- name: Publish manylinux Python wheels
if: matrix.runs-on == 'ubuntu-latest' && matrix.python-version == '3.10'
if: matrix.runs-on == 'ubuntu-latest' && matrix.python-version == '3.11'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
Expand Down

0 comments on commit e7e5342

Please sign in to comment.