Fix tests when running as root #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Testing | |
on: | |
push: | |
branches: ["*"] | |
paths-ignore: | |
- 'docs/**' | |
- '*.md' | |
tags-ignore: ["*"] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python: | |
- "3.12" | |
container: | |
image: python:${{ matrix.python }}-alpine | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v1 | |
- name: Setup environment | |
run: apk --update add gcc libpq make musl-dev linux-headers alpine-conf | |
- name: Setup and run Tests | |
run: ci/test.sh | |
- name: Upload Coverage | |
uses: codecov/codecov-action@v1.0.2 | |
if: github.event_name == 'push' && github.repository == 'gmr/rejected' | |
with: | |
token: ${{secrets.CODECOV_TOKEN}} | |
file: build/coverage.xml | |
flags: unittests |