Compare commits

...

9 Commits

Author SHA1 Message Date
2e2dd743d2 add docs artifact
All checks were successful
Test bankfind / Python ${{ matrix.python-version }} sample (3.8) (push) Successful in 19s
2024-07-24 07:49:22 -07:00
4aee92547c v3
All checks were successful
Test bankfind / Python ${{ matrix.python-version }} sample (3.8) (push) Successful in 14s
2024-07-24 07:32:37 -07:00
729fd18fbf add artifact upload
Some checks failed
Test bankfind / Python ${{ matrix.python-version }} sample (3.8) (push) Failing after 49s
2024-07-23 08:02:45 -07:00
ce461a52c0 add flit
All checks were successful
Test bankfind / Python ${{ matrix.python-version }} sample (3.8) (push) Successful in 16s
2024-07-23 08:00:50 -07:00
f4575344f0 add mkdocs
All checks were successful
Test bankfind / Python ${{ matrix.python-version }} sample (3.8) (push) Successful in 1m10s
2024-07-23 07:54:31 -07:00
74e2444bd4 fix test
All checks were successful
Test bankfind / Python ${{ matrix.python-version }} sample (3.8) (push) Successful in 39s
2024-07-23 07:49:28 -07:00
3f9c4b6fc5 break a test
Some checks failed
Test bankfind / Python ${{ matrix.python-version }} sample (3.8) (push) Failing after 12s
2024-07-23 07:48:50 -07:00
8b49807361 split tests out
All checks were successful
Test bankfind / Python ${{ matrix.python-version }} sample (3.8) (push) Successful in 12s
2024-07-23 07:44:28 -07:00
d482417504 add tests
All checks were successful
Test bankfind / Python ${{ matrix.python-version }} sample (3.8) (push) Successful in 1m7s
2024-07-23 07:41:20 -07:00
2 changed files with 67 additions and 0 deletions

View File

@ -0,0 +1,54 @@
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

View File

@ -70,3 +70,16 @@ data = bf.get_institutions(filters="STNAME:Colorado AND SUBCHAPS:0 AND CB:1")
## License
This project is licensed under the terms of the MIT license.
## Development
### Running Tests Locally
```bash
brew install python@3.8
mkvirtualenv -p /opt/homebrew/bin/python3.8 bankfind
pip install -U pip
pip install pytest coverage pytest-cov
pip install -r requirements.txt
pytest
```