use mara cli instead of flask mara commands #26
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: mara-cron | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] | |
steps: | |
- name: Chechout code | |
uses: actions/checkout@v2 | |
- name: Setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install package | |
env: | |
pythonversion: ${{ matrix.python-version }} | |
run: | | |
python -c "import sys; print(sys.version)" | |
pip install . | |
echo Finished successful build with Python $pythonversion | |
- name: Test with pytest | |
run: | | |
pip install .[test] | |
mkdir -p tests/logs | |
pytest -v tests |