diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 67cbd9ee..31dd9456 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -13,7 +13,8 @@ "extensions": [ "ms-python.python", "GitHub.copilot", - "ms-azuretools.vscode-docker" + "ms-azuretools.vscode-docker", + "github.vscode-github-actions" ] } } diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 1227b95c..3cfda759 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -11,11 +11,26 @@ permissions: jobs: build: - runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + + - name: Build and load Docker image + uses: docker/build-push-action@v2 + with: + context: ./.devcontainer + push: false + tags: devcontainer + load: true + + test: + needs: build + container: + image: devcontainer + runs-on: ubuntu-latest + + steps: - name: Test run: | echo "success"