Build and Python images #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: build checker | |
run-name: Build and Python images | |
on: | |
pull_request: | |
push: | |
branches-ignore: main | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ${{ github.repository }} | |
MAIN_BRANCH: "main" | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: install dependencies | |
run: pip install -r requirements/requirements.txt | |
- name: install dev dependencies | |
run: pip install -r requirements/requirements-dev.txt | |
- name: Run tests | |
run: python -m pytest |