fix(_default_asyncs): Re-check DB before transfer search #283
Workflow file for this run
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: alpenhorn-ci-build | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
jobs: | |
lint-code: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install pip dependencies | |
run: pip install black | |
- name: Check code with black | |
run: black --check . | |
run-tests: | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.12"] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install pip dependencies | |
run: pip install -e .[test] | |
- name: Run tests | |
run: pytest -v . | |
# run-docker-tests: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - name: Set up Python 3.9 | |
# uses: actions/setup-python@v1 | |
# with: | |
# python-version: 3.9 | |
# - name: Install pip dependencies | |
# run: | | |
# pip install -r requirements.txt | |
# pip install -r test-requirements.txt | |
# python setup.py develop | |
# - name: Build docker image | |
# run: docker build -f tests/docker/Dockerfile.alpenhorn -t alpenhorn . | |
# - name: Run docker tests | |
# run: pytest tests/docker/test_docker.py | |
# env: | |
# RUN_DOCKER_TESTS: true |