diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index e441540..95f8177 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -12,16 +12,22 @@ jobs: build-docs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v3 + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v3 with: python-version: '3.10' + - name: Install dependencies run: | pip install mkdocs mkdocs-material pdoc3 pip install -r requirements.txt + - name: Build MkDocs run: mkdocs gh-deploy --force + - name: Build API docs run: | pdoc --html --output-dir docs/api src/ \ No newline at end of file diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 772bd9c..6f99478 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -14,22 +14,28 @@ jobs: python-version: ["3.8", "3.9", "3.10"] steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install flake8 pytest coverage pytest-cov - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Lint with flake8 - run: | - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - flake8 . --count --exit-zero --max-complexity=10 --statistics - - name: Test with pytest - run: | - pytest --cov=src/ --cov-report=xml - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 \ No newline at end of file + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 pytest coverage pytest-cov + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + + - name: Lint with flake8 + run: | + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + flake8 . --count --exit-zero --max-complexity=10 --statistics + + - name: Test with pytest + run: | + pytest --cov=src/ --cov-report=xml + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 \ No newline at end of file