Skip to content

Commit

Permalink
Run tests on github-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
vsalomaki committed Feb 2, 2025
1 parent 2a60efc commit c8ef7ed
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Test and build

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
env:
TEST_IMAGE_REF: netvisor-api-client-tester:${{ github.sha }}

jobs:
test:
name: Run tox tests & lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Tester Docker image
run: docker build . --file tests.dockerfile --tag ${{ env.TEST_IMAGE_REF }}
- name: Run tests
run: docker run --rm ${{ env.TEST_IMAGE_REF }}

0 comments on commit c8ef7ed

Please sign in to comment.