This repository has been archived by the owner on Dec 28, 2023. It is now read-only.
Preparing the documentation for release (#31) #6
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: Basic Tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
tests: | |
name: tests-python${{ matrix.python-version }}-${{ matrix.os }} | |
env: | |
APP_KEY: ${{secrets.APP_KEY}} | |
APP_SECRET: ${{secrets.APP_SECRET}} | |
REFRESH_TOKEN: ${{secrets.REFRESH_TOKEN}} | |
MONGODB_USERNAME: ${{secrets.MONGODB_USERNAME}} | |
MONGODB_PASSWORD: ${{secrets.MONGODB_PASSWORD}} | |
MONGODB_DATABASE_URL: ${{secrets.MONGODB_DATABASE_URL}} | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
matrix: | |
python-version: ['3.10', '3.11'] | |
os: ["ubuntu-latest", "macOS-latest", "windows-latest"] | |
steps: | |
- name: Print Concurrency Group | |
env: | |
CONCURRENCY_GROUP: ${{ github.repository }}-${{ github.ref }}-${{ github.head_ref }} | |
run: | | |
echo -e "\033[31;1;4mConcurrency Group\033[0m" | |
echo -e "$CONCURRENCY_GROUP\n" | |
shell: bash | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements-dev.txt | |
- name: Run Tests | |
run: | | |
python - m pytest |