Add readme, repo, homepage #66
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run critical Python tests | |
on: | |
- push | |
jobs: | |
testing: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.8', '3.9', '3.10'] | |
flask-version: [latest] | |
os: [ubuntu-20.04] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install poetry | |
run: pip3 install poetry | |
- name: Force Python version (linux/macOS) | |
if: matrix.os != 'windows-latest' | |
# sed command for macOS: https://stackoverflow.com/a/44864004 | |
run: sed -i.bak 's/python = "^3.6"/python = "~${{ matrix.python-version }}"/' pyproject.toml | |
- name: Force Python version (windows) | |
if: matrix.os == 'windows-latest' | |
run: (Get-Content pyproject.toml).replace('python = "^3.6"', 'python = "~${{ matrix.python-version }}"') | Set-Content pyproject.toml | |
- name: Force Flask version | |
run: poetry add Flask==${{ matrix.flask-version }} | |
- name: Install requirements | |
run: poetry install | |
- name: List installed package versions for manual inspection | |
run: poetry --version && poetry show | |
- name: Test package | |
run: poetry run test | |
- name: Test package | |
run: poetry run doctest |