diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..79deabd --- /dev/null +++ b/.github/workflows/test.yml @@ -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` diff --git a/.gitignore b/.gitignore index 458fefa..6d491e7 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,5 @@ .pytest_cache */__pycache__ */*/__pycache__ -permissions_engine/data.json \ No newline at end of file +permissions_engine/data.json +image.txt \ No newline at end of file