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

Run tests on self-hosted runner #23

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
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
12 changes: 8 additions & 4 deletions .github/workflows/tests-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ on:
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
runs-on: self-hosted
container:
image: ubuntu:latest
options:
--privileged

steps:
- name: Checkout repository
Expand All @@ -29,8 +33,8 @@ jobs:

- name: Install apt dependencies
run: |
sudo apt-get update
sudo apt-get install libdb-dev fp-compiler fp-units-base fp-units-math
apt-get update
apt-get install -y libdb-dev fp-compiler fp-units-base fp-units-math build-essential ca-certificates

- name: Cache Python dependencies
uses: actions/cache@v3
Expand All @@ -48,7 +52,7 @@ jobs:
- name: Install Python dependencies
run: |
pip install --user virtualenv
virtualenv venv
python -m virtualenv venv
. venv/bin/activate
pip install -e .[dev]

Expand Down
Loading