Skip to content

Commit

Permalink
ci: Update ci file to run app in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
gitstart-nimhdsst authored Jul 4, 2024
1 parent 9c1a89d commit 0603403
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]
tox-tests:
runs-on: ubuntu-latest

Expand All @@ -17,7 +17,6 @@ jobs:
python-version: [3.9]

steps:

- name: Checkout repository
uses: actions/checkout@v2

Expand All @@ -39,14 +38,18 @@ jobs:
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Start ScienceBeam Docker container
- name: Install Docker Compose
run: |
docker run -d --rm -p 8070 elifesciences/sciencebeam-parser
mkdir -p ~/.local/bin
curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o ~/.local/bin/docker-compose
chmod +x ~/.local/bin/docker-compose
export PATH="$HOME/.local/bin:$PATH"
docker-compose --version
- name: Run tests
- name: Build and run Docker containers
run: |
tox
docker-compose up --build -d
- name: Test packaging
- name: Run tox tests inside Docker and tox packaging
run: |
tox -e .package
docker-compose run osm bash -c "pip install tox && tox && tox -e .package"

0 comments on commit 0603403

Please sign in to comment.