Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sohalt committed Apr 13, 2024
1 parent 40bc0dc commit 0c09b9c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 48 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/ci.yml

This file was deleted.

44 changes: 22 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
workflow_dispatch: null

name: Create Release

jobs:
test:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- 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
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
pip install build
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: nicknovitski/nix-develop@v1
- name: Build
run: |
cd src
python -m build
- uses: actions/upload-artifact@v4
with:
name: dist
path: src/dist
path: dist
test:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: nicknovitski/nix-develop@v1
- uses: actions/download-artifact@v4
with:
name: dist
path: dist
- name: Integration tests
run: |
pytest --version
pytest
release:
name: Create Release
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
environment: release
needs: build
needs: [lint, test]
permissions:
id-token: write
steps:
Expand Down
2 changes: 1 addition & 1 deletion tests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ services:
container_name: redis

pretix:
build: ./../..
build: ./..
container_name: pretix
volumes:
- ./pretix/etc/pretix:/etc/pretix
Expand Down

0 comments on commit 0c09b9c

Please sign in to comment.