Skip to content

Added concurrency config for workflows. (#3) #2

Added concurrency config for workflows. (#3)

Added concurrency config for workflows. (#3) #2

Workflow file for this run

name: Merge to Main Branch
on:
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12.3
cache: 'pip'
- name: Cache dependencies
id: cache-dependencies
uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.local/lib/python3.12/site-packages
key: ${{ runner.os }}-pip-${{ hashFiles('./requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Run the tests
run: |
pip install tox
tox -e py