Update README.md #65
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Push latest | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
actions: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Copia repositorio | |
uses: actions/checkout@main | |
- name: Construye imagen | |
run: docker build --tag nepolin/statified_nies:latest --tag nepolin/statified_nies:${GITHUB_SHA:0:4} . | |
- name: Verifica el formato | |
run: docker run nepolin/statified_nies:latest make check | |
- name: Corre pruebas y evalúa cobertura | |
run: docker run --volume $PWD:/workdir nepolin/statified_nies:latest make coverage | |
- name: Upload coverage reports to Codecov with GitHub Action | |
uses: codecov/codecov-action@v3 | |
with: | |
files: ./coverage.xml | |
verbose: true | |
- name: Evalúa resistencia a mutaciones | |
run: docker run nepolin/statified_nies:latest make mutants | |
- name: Docker log-in | |
env: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
run: echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin | |
- name: Sube latest a Docker Hub | |
run: docker push nepolin/statified_nies:latest | |
- name: Sube sha a Docker Hub | |
run: docker push nepolin/statified_nies:${GITHUB_SHA:0:4} | |
build-n-publish: | |
name: Build and publish Python 🐍 distributions 📦 to PyPI | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.9 | |
- name: Install pypa/build | |
run: >- | |
python -m | |
pip install | |
build | |
--user | |
- name: Build a binary wheel and a source tarball | |
run: >- | |
python -m | |
build | |
--sdist | |
--wheel | |
--outdir dist/ | |
. | |
- name: Publish distribution 📦 to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.PYPI_TOKEN }} | |
skip_existing: true |