fix: Don't create migration if there are no schema changes (#118) #181
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: Build and test | |
on: | |
pull_request: | |
types: | |
- edited | |
- opened | |
- synchronize | |
- reopened | |
push: | |
branches: [main] | |
jobs: | |
build-and-test: | |
name: pytest | |
runs-on: ubuntu-latest | |
concurrency: | |
group: platformics-build-and-test-${{ github.ref }} | |
cancel-in-progress: true | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v4 | |
- name: set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.12' | |
- name: install poetry | |
run: | | |
python -m pip install --no-cache-dir poetry==1.8 supervisor | |
- name: set up docker | |
run: make gha-setup | |
- name: Build docker image | |
run: make build | |
- name: run tests | |
run: make test |