diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 513d046..a1cdaed 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,8 +55,7 @@ jobs: - name: Install Python Dependencies run: | python -m pip install --upgrade pip setuptools wheel - python -m pip install --upgrade -r requirements.txt - python -m pip install --upgrade -r requirements-dev.txt + python -m pip install -e ".[dev]" - name: Test with pytest id: test @@ -76,16 +75,7 @@ jobs: REDDIT_USERNAME: ${{ vars.REDDIT_USERNAME }} REDDIT_PASSWORD: ${{ secrets.REDDIT_PASSWORD }} shell: bash - run: | - python -m pytest \ - -rxXs \ - --tb=native \ - --verbose \ - --color=yes \ - --cov=src \ - --junitxml=junit.xml \ - -o junit_family=legacy \ - tests + run: python -m pytest tests - name: Upload test coverage # any except canceled or skipped diff --git a/Dockerfile b/Dockerfile index b579e9d..e339529 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,11 +34,15 @@ RUN <<_SETUP #!/bin/bash set -e -# replace the version in the code -sed -i "s/version = '0.0.0'/version = '${BUILD_VERSION}'/g" src/common/common.py +# write the version to the version file +cat > src/common/version.py <