-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f706a06
commit 6f27353
Showing
2 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,10 +32,6 @@ jobs: | |
run: | | ||
make check-tags | ||
- name: check lint | ||
run: | | ||
make lint | ||
- name: run solutions | ||
run: | | ||
make 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
name: Lint | ||
on: [push] | ||
jobs: | ||
lint-c: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- uses: docker/setup-buildx-action@v2 | ||
- name: check if tags are correct | ||
run: | | ||
make check-tags | ||
- uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
file: ".docker/lint/c-lint.Dockerfile" | ||
tags: c-lint:latest | ||
load: true | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
push: false | ||
- name: Run Pytest | ||
uses: addnab/docker-run-action@v3 | ||
with: | ||
image: c-lint:latest | ||
options: -v $$(pwd):/code |