2024-07-23 07:41:20 -07:00
|
|
|
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
|
2024-07-23 07:44:28 -07:00
|
|
|
- name: Setup Tests and Dependencies
|
|
|
|
run: |
|
2024-07-23 07:41:20 -07:00
|
|
|
python --version
|
|
|
|
pip install -U pip
|
|
|
|
pip install pytest coverage pytest-cov
|
|
|
|
pip install -r requirements.txt
|
2024-07-23 07:44:28 -07:00
|
|
|
- name: Run tests
|
|
|
|
run: |
|
2024-07-23 07:54:31 -07:00
|
|
|
pytest
|
2024-07-23 08:00:50 -07:00
|
|
|
- name: build package with flit
|
2024-07-23 07:54:31 -07:00
|
|
|
run: |
|
2024-07-23 08:00:50 -07:00
|
|
|
pip install -U flit
|
|
|
|
flit build
|
|
|
|
find dist
|
2024-07-23 08:02:45 -07:00
|
|
|
- name: upload package as artifact
|
2024-07-24 07:32:37 -07:00
|
|
|
uses: actions/upload-artifact@v3
|
2024-07-23 08:02:45 -07:00
|
|
|
with:
|
|
|
|
name: bankfind
|
|
|
|
path: dist
|
2024-07-23 08:00:50 -07:00
|
|
|
|
|
|
|
# - name: Build docs with mkdocs
|
|
|
|
# run: |
|
|
|
|
# pip install mkdocs mkdocs-material mkdocs-material-extensions
|
|
|
|
# cd docs
|
|
|
|
# mkdocs build
|
|
|
|
# find site
|