Skip to content

Commit

Permalink
Try to re-add automated tests to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
RedTachyon committed Feb 9, 2024
1 parent 709a206 commit e672292
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: build
on: [pull_request, push]

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
build-all:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v3
- run: |
docker build -f bin/all-py.Dockerfile \
--build-arg PYTHON_VERSION=${{ matrix.python-version }} \
--tag cogment_lab-all-docker .
- name: Run tests
run: docker run cogment_lab-all-docker pytest tests/*

0 comments on commit e672292

Please sign in to comment.