Skip to content

Commit

Permalink
ci: develop ci process
Browse files Browse the repository at this point in the history
  • Loading branch information
nshe-dtaliaferro committed Dec 9, 2024
1 parent 808b6c1 commit bc974bc
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Continuous Integration

# Trigger this workflow manually, by pushing commits to any branch, or
# by filing a pull request.
on:
workflow_dispatch:
push:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
steps:
# Get the latest code.
- uses: actions/checkout@v4

# Install the software used for linting and testing.
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- uses: opentofu/setup-opentofu@v1
- uses: terraform-linters/setup-tflint@v4
- run: pip install -e .[dev,test]

# Create a dummy Lambda function package for validation
# purposes.
- run: touch lambda-function.zip

# Run the linters.
- uses: pre-commit/[email protected]

# Run the test suite.
- uses: pavelzw/pytest-action@v2
with:
custom-arguments: --cov=simple_scoreboard

0 comments on commit bc974bc

Please sign in to comment.