Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Major Cleanup #31

Merged
merged 22 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 106 additions & 0 deletions .github/workflows/mrsal.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
name: Mrsal Workflow

on:
push:
branches:
- main
- 'release/**'
- '!releases/**-alpha'
release:
types: [published]
pull_request:
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Set up poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: '1.8.0'
- name: Conifgure Poetry
run: |
poetry config repositories.neomedsys https://pypi.neomodels.app
poetry config http-basic.neomedsys ${{ secrets.PYPI_USERNAME }} ${{ secrets.PYPI_PASSWORD }}
- name: Install depz
run: |
poetry install --no-cache --no-root
export msg="s/(-)?v[0-9]+\.[0-9]+\.[0-9]+/\1$(poetry version -s)/g"
sed -i -E $msg ./README.md
sed -i -E 's/(-b)//g' ./README.md
sed -i -E 's/(-a)//g' ./README.md
- name: Run tests
run: |
rm -rf ./reports/flake8/*.txt
poetry run nox
- name: Commit to GH
uses: stefanzweifel/git-auto-commit-action@v4

build:
runs-on: ubuntu-latest
if: github.event_name == 'release'
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Set up poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: '1.8.0'
- name: Conifgure Poetry
run: |
poetry config repositories.neomedsys https://pypi.neomodels.app
poetry config http-basic.neomedsys ${{ secrets.PYPI_USERNAME }} ${{ secrets.PYPI_PASSWORD }}
- name: Install dependencies
run: |
poetry install --no-cache --no-root
- name: Build and publish
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
poetry publish --build

doc_building:
if: github.event_name == 'push'
strategy:
fail-fast: false
matrix:
python-version: [3.11]
poetry-version: [1.8.2]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Conifgure Poetry
run: |
poetry config repositories.neomedsys https://pypi.neomodels.app
poetry config http-basic.neomedsys ${{ secrets.PYPI_USERNAME }} ${{ secrets.PYPI_PASSWORD }}
- name: Install deps and build docs
run: |
poetry lock --no-update
poetry install --with dev --no-cache --no-root
poetry run sphinx-apidoc -o ./docs ./src/mrsal
poetry run make html
- name: Docs to GH
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html


80 changes: 0 additions & 80 deletions .github/workflows/tests_workflow.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions Dockerfile

This file was deleted.

Loading
Loading