Weekly Test Action (periodic verification everything works) #35
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: Weekly Test Action (periodic verification everything works) | |
on: | |
schedule: | |
- cron: '30 17 * * 1' | |
jobs: | |
tests: | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11"] | |
platform: [ubuntu-latest, macos-12, macos-13] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Configure ULTERA MongoDB Access | |
run: echo "$PYQALLOYSTATICCONFIG" > pyqalloy/credentials.json | |
shell: bash | |
env: | |
PYQALLOYSTATICCONFIG: ${{secrets.PYQALLOYSTATICCONFIG}} | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
cache-dependency-path: 'pyproject.toml' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install flask pytest | |
python -m pip install -e . | |
- name: Test with pytest | |
run: | | |
pytest |