Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
befeleme committed Nov 6, 2023
1 parent 68ffd41 commit 481592e
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions config/copr.repo
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 481592e

Please sign in to comment.