bankfind/.gitea/workflows/test.yaml
Austin Godber 2e2dd743d2
All checks were successful
Test bankfind / Python ${{ matrix.python-version }} sample (3.8) (push) Successful in 19s
add docs artifact
2024-07-24 07:49:22 -07:00

55 lines
1.4 KiB
YAML

name: Test bankfind
run-name: ${{ gitea.actor }} is testing out bankfind 🐍
on:
- push
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.8' ]
name: Python ${{ matrix.python-version }} sample
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Setup Tests and Dependencies
run: |
python --version
pip install -U pip
pip install pytest coverage pytest-cov
pip install -r requirements.txt
- name: Run tests
run: |
pytest
- name: build package with flit
run: |
pip install -U flit
flit build
find dist
- name: upload package as artifact
# v4 doesn't work
# uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: bankfind
path: dist
- name: Build docs with mkdocs
run: |
pip install mkdocs mkdocs-material mkdocs-material-extensions
cd docs
mkdocs build
find site
- name: upload docs as artifact
# v4 doesn't work
# uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: bankfind-docs
path: docs/site