Skip to content

Commit

Permalink
Merge CI scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSchiavini committed Jan 11, 2024
1 parent c91d58f commit 8cd984a
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 187 deletions.
49 changes: 0 additions & 49 deletions .github/tentative_workflows/test_factory.yaml

This file was deleted.

44 changes: 0 additions & 44 deletions .github/tentative_workflows/test_gauge.yaml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/tentative_workflows/test_pools_2.yaml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/tentative_workflows/test_token.yaml

This file was deleted.

66 changes: 66 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: lint

on: [push]

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:

lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup Python 3.10.4
uses: actions/setup-python@v4
with:
python-version: 3.10.4

- uses: pre-commit/action@v3.0.0

tests:
runs-on: ubuntu-latest
strategy:
matrix:
name:
- gauge
- pools
- factory
include:
- name: gauge
tests: tests/gauge/
- name: pools
tests: tests/pools/
- name: factory
tests: >-
tests/test_factory.py
tests/test_factory_forked.py
tests/test_get_D.py
tests/test_token.py
steps:
- uses: actions/checkout@v3

- name: Cache Compiler Installations
uses: actions/cache@v3
with:
path: ~/.vvm
key: compiler-cache

- name: Setup Python 3.10.4
uses: actions/setup-python@v4
with:
python-version: 3.10.4

- name: Install Requirements
run: |
pip install poetry==1.5.1
poetry config virtualenvs.in-project true
poetry install --no-interaction --without dev
- name: Run Tests
run: |
source .venv/bin/activate
pytest -n auto ${{ matrix.tests }}
18 changes: 0 additions & 18 deletions .github/workflows/lint.yaml

This file was deleted.

0 comments on commit 8cd984a

Please sign in to comment.