This repository has been archived by the owner on Mar 20, 2024. It is now read-only.
forked from rgaveiga/optionlab
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Marc Hermann
authored and
Marc Hermann
committed
Jan 28, 2024
1 parent
0009a48
commit 05a7204
Showing
1 changed file
with
25 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Run unit and integration tests for CI | ||
# Build any branch that passes CI as a docker image | ||
# Push a docker image tagged with the git hash and branch name | ||
# For PR's, display the option to deploy to the test env | ||
# For merges to main, display the option to deploy to the dev env | ||
# The environments are configured in the GitHub repo settings | ||
|
||
name: CI/CD | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/cached-venv | ||
- name: Run mypy & service tests | ||
run: | | ||
source venv/bin/activate | ||
mypy . --ignore-missing-imports | ||
pytest |