Skip to content

Commit

Permalink
Test some stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Mews committed Jun 11, 2024
1 parent 3a961eb commit 8cb1b2d
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Run tests

on:
push:

env:
pytest_cpus: 2

jobs:
test:
runs-on: "ubuntu-latest"

steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: 'pip'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: Setup pytest-xdist arguments
run: |
echo "Will be using $pytest_cpus to run tests"
export xdist_args="-n $pytest_cpus"
- name: Run tests
run: echo pytest $xdist_args tests

0 comments on commit 8cb1b2d

Please sign in to comment.