diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 14a2619..bfbc7f3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ on: name: Create Release jobs: - test: + lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -15,16 +15,9 @@ jobs: - uses: nicknovitski/nix-develop@v1 - name: Lint with flake8 run: | - cd src flake8 --version flake8 - - name: Test with pytest - run: | - cd src/tests - pytest --version - pytest build: - needs: test runs-on: ubuntu-latest steps: - name: Checkout code @@ -33,22 +26,29 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.x' - - name: Install dependencies - run: | - pip install build - name: Build run: | - cd src python -m build - uses: actions/upload-artifact@v4 with: name: dist path: src/dist + test: + runs-on: ubuntu-latest + needs: build + steps: + - uses: actions/checkout@v4 + - uses: DeterminateSystems/nix-installer-action@main + - uses: nicknovitski/nix-develop@v1 + - name: Integration tests + run: | + pytest --version + pytest release: name: Create Release runs-on: ubuntu-latest environment: release - needs: build + needs: [lint, test] permissions: id-token: write steps: