From 481592ef118b62bf406d2aba184b6b7a2a89608c Mon Sep 17 00:00:00 2001 From: Karolina Surma Date: Mon, 6 Nov 2023 19:23:47 +0100 Subject: [PATCH] test --- .github/workflows/ci.yaml | 31 +++++++++++++++++++++++++++++++ config/copr.repo | 11 +++++++++++ 2 files changed, 42 insertions(+) create mode 100644 .github/workflows/ci.yaml create mode 100644 config/copr.repo diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..731ebfb2 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,31 @@ +name: CI +on: + push: + branches: + - main + pull_request: + +jobs: + test: + name: fedora + runs-on: ubuntu-latest + + steps: + - name: Setup Podman + run: | + sudo apt update + sudo apt-get -y install podman + podman pull fedora:38 + - name: Get source + uses: actions/checkout@v3 + - name: Create container and run tests + run: | + { + echo 'FROM fedora:38' + echo 'RUN dnf -y update' + echo 'RUN dnf -y install python3 koji copr-cli' + echo 'RUN cp config/copr.repo /etc/yum.repos.d/python313.repo' + echo 'RUN repoquery --repo=python313 --source --whatrequires 'libpython3.13.so.1.0()(64bit)' --whatrequires 'python(abi) = 3.13' --whatrequires 'python3.13dist(*)' | pkgname | env LANG=en_US.utf-8 sort | uniq > python313.pkgs' + echo 'RUN wc -l python313.pkgs' + } > podmanfile + podman build --tag fedora38test -f ./podmanfile \ No newline at end of file diff --git a/config/copr.repo b/config/copr.repo new file mode 100644 index 00000000..a34b5f2a --- /dev/null +++ b/config/copr.repo @@ -0,0 +1,11 @@ +[python313] +name=Copr repo for python3.13 owned by @python +baseurl=https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-$basearch/ +type=rpm-md +skip_if_unavailable=False +gpgcheck=1 +gpgkey=https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/pubkey.gpg +repo_gpgcheck=0 +enabled=0 +enabled_metadata=1 +priority=9 \ No newline at end of file