Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: don't use docker for ci #51

Merged
merged 1 commit into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 19 additions & 14 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,26 @@ name: Tests and Linters 🧪
on: [ push, pull_request ]

jobs:
test-ubuntu:
runs-on: self-hosted
timeout-minutes: 45
tests-and-linters:
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }}"
runs-on: "${{ matrix.os }}"

strategy:
fail-fast: false
matrix:
docker-image: ["python:3.9", "python:3.10"]
python-version: ["3.9", "3.10"]
os: [self-hosted]

steps:
- name: Checkout marl_eval
uses: actions/checkout@v2
- name: Check format and types
run: |
docker run --mount "type=bind,src=$(pwd),dst=/tmp/marl_eval" \
-w "/tmp/marl_eval" --rm ${{ matrix.docker-image }} /bin/bash bash_scripts/check_format.sh
- name: Run tests in docker
run: |
docker run --mount "type=bind,src=$(pwd),dst=/tmp/marl_eval" \
-w "/tmp/marl_eval" --rm ${{ matrix.docker-image }} /bin/bash bash_scripts/tests.sh
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python-version }}"
- name: Install python dependencies
run: pip install .[dev]
- name: List python packages 📦
run: pip list
- name: Run linters 🖌️
run: pre-commit run --all-files --verbose
- name: Run tests 🧪
run: pytest -n 2 tests
52 changes: 0 additions & 52 deletions bash_scripts/check_format.sh

This file was deleted.

46 changes: 0 additions & 46 deletions bash_scripts/tests.sh

This file was deleted.

Loading