Skip to content

Commit

Permalink
Run install and tests in devenv container
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Hirschvogel committed Oct 17, 2023
1 parent eac133f commit 58448a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Create and publish a Docker image

# Configures this workflow to run every time a change is pushed to the branch called `release`.
on:
push
push:
branches: ['release'] # TODO: Should be push to master, but action currently fails when trying to push Docker image (ERROR: unauthorized: access token has insufficient scopes)

# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
env:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
# tests installation of Ambit in devenv Docker container and execution of tests
name: testing
on:
push
jobs:
container-job:
runs-on: ubuntu-latest
container:
image: ghcr.io/marchirschvogel/ambit:latest
image: ghcr.io/marchirschvogel/ambit:devenv
steps:
- name: Checkout Ambit
run: git clone https://github.com/marchirschvogel/ambit.git
- name: Install latest Ambit dev version
run: python3 -m pip install git+https://github.com/marchirschvogel/ambit.git --no-cache-dir
- name: Switch to Ambit tests folder
run: cd ambit/tests
- name: Run Ambit tests
Expand Down

0 comments on commit 58448a4

Please sign in to comment.