diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 348a7fd..ba8e2bf 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -21,23 +21,8 @@ on: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - # Generate a common hashseed for all tests - generate-hashseed: - runs-on: ubuntu-latest - - outputs: - hashseed: ${{ steps.generate.outputs.hashseed }} - - steps: - - name: Generate Hashseed - id: generate - run: | - python -c "import os - from random import randint - hashseed = randint(0, 4294967295) - print(f'{hashseed=}') - open(os.environ['GITHUB_OUTPUT'], 'a').write(f'hashseed={hashseed}')" + # Run flake8 linter flake8: runs-on: ubuntu-latest @@ -58,6 +43,23 @@ jobs: pip install flake8 flake8 setup.py dpath/ tests/ + # Generate a common hashseed for all tests + generate-hashseed: + runs-on: ubuntu-latest + + outputs: + hashseed: ${{ steps.generate.outputs.hashseed }} + + steps: + - name: Generate Hashseed + id: generate + run: | + python -c "import os + from random import randint + hashseed = randint(0, 4294967295) + print(f'{hashseed=}') + open(os.environ['GITHUB_OUTPUT'], 'a').write(f'hashseed={hashseed}')" + # Tests job tests: # The type of runner that the job will run on