Skip to content

Commit

Permalink
test github action
Browse files Browse the repository at this point in the history
  • Loading branch information
daisieh committed Apr 26, 2024
1 parent bdac25a commit 0378672
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Github Actions Test

on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
env:
CANDIG_URL: "http://localhost"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Build Docker image
run: docker image build --build-arg venv_python=${{ matrix.python-version }} --iidfile image.txt .
- name: Test with pytest
run: docker run `cat image.txt`
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
.pytest_cache
*/__pycache__
*/*/__pycache__
permissions_engine/data.json
permissions_engine/data.json
image.txt

0 comments on commit 0378672

Please sign in to comment.