Fix problems with new readthedocs proactively (see pipedag) #62
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: Tests | |
on: | |
push: | |
paths-ignore: | |
- 'docs/**' | |
branches: | |
- '**' | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
branches: | |
- '**' | |
jobs: | |
Linting: | |
name: "Linting - pre-commit hooks - Python 3.9" | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v3 | |
- name: Install Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Linting - Run pre-commit checks | |
uses: pre-commit/[email protected] | |
Tests: | |
name: "${{ matrix.os }} / ${{ matrix.python-version }}" | |
runs-on: ${{ matrix.os }}-latest | |
strategy: | |
matrix: | |
os: [Ubuntu] | |
python-version: ['3.9', '3.10', '3.11'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Environment | |
uses: ./.github/actions/setup | |
with: | |
python-version: ${{ matrix.python-version }} | |
poetry-flags: --all-extras --with=tests | |
- name: Start Docker Compose | |
uses: isbang/[email protected] | |
with: | |
compose-file: ./docker-compose.yaml | |
- name: Install Microsoft ODBC | |
run: sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18 | |
- name: Wait for Docker Servers | |
timeout-minutes: 1 | |
shell: bash | |
run: | | |
until bash ./.github/workflows/resources/docker_compose_ready.sh; do | |
sleep 2 | |
done | |
- name: Run Tests | |
uses: ./.github/actions/test | |
with: | |
arguments: --postgres --mssql |