BLD Replace TravisCI and Wercker with GitHub Actions

This commit is contained in:
Renato Alves
2021-04-01 16:26:20 +02:00
parent 557bb605d3
commit 90a0060fcf
4 changed files with 48 additions and 125 deletions
+47
View File
@@ -0,0 +1,47 @@
name: Test firefox_decrypt
on: [push]
jobs:
test-latest-firefox:
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [ ubuntu, macos ]
python-version: [ 3.7, 3.8, 3.9, 3.10.0-alpha.6, pypy3 ]
firefox: [ 'latest-devedition', 'latest-esr', 'latest' ]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Setup firefox ${{ matrix.firefox }}
uses: browser-actions/setup-firefox@latest
with:
firefox-version: ${{ matrix.firefox }}
- name: Run tests
run: |
cd tests
python run_all -v
test-87-firefox:
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [ ubuntu, macos, windows ]
python-version: [ 3.7, 3.8, 3.9, 3.10.0-alpha.6, pypy3 ]
firefox: [ '87.0' ]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Setup firefox ${{ matrix.firefox }}
uses: browser-actions/setup-firefox@latest
with:
firefox-version: ${{ matrix.firefox }}
- name: Run tests
run: |
cd tests
python run_all -v
-19
View File
@@ -1,19 +0,0 @@
language: python
# stop using precise which is still the default
dist: xenial
# Using xenial also requires sudo
sudo: required
# Use containers instead of VMs
#sudo: false
addons:
apt:
packages:
- libnss3
python:
- "3.6"
- "3.7"
script:
- cd tests && ./run_all -v
+1 -1
View File
@@ -1,6 +1,6 @@
### Firefox Decrypt
[![Build Status](https://travis-ci.org/unode/firefox_decrypt.svg?branch=master)](https://travis-ci.org/unode/firefox_decrypt) [![wercker status](https://app.wercker.com/status/d9b714c5d195dd9e7582e8cd6f463982/m/master "wercker status")](https://app.wercker.com/project/byKey/d9b714c5d195dd9e7582e8cd6f463982)
![GitHub Actions status](https://github.com/unode/firefox_decrypt/actions/workflows/main.yml/badge.svg)
**The master branch is unstable during migration to Python 3.**
-105
View File
@@ -1,105 +0,0 @@
py3:
box: python:3
steps:
- install-packages:
packages: libnss3
- script:
name: Run tests
code: |
python3 --version
cd tests
./run_all -v
debian-stable:
box: debian:stable
steps:
- install-packages:
packages: python3 libnss3
- script:
name: Run tests
code: |
python3 --version
cd tests
./run_all -v
debian-testing:
box: debian:testing
steps:
- install-packages:
packages: python3 libnss3
- script:
name: Run tests
code: |
python3 --version
cd tests
./run_all -v
debian-unstable:
box: debian:unstable
steps:
- install-packages:
packages: python3 libnss3
- script:
name: Run tests
code: |
python3 --version
cd tests
./run_all -v
fedora:
box: fedora:latest
steps:
- script:
name: Install packages
code: dnf install python3 nss -y
- script:
name: Run tests
code: |
python3 --version
cd tests
./run_all -v
centos:
box: centos:latest
steps:
- script:
name: Install packages
code: |
yum install -y https://centos7.iuscommunity.org/ius-release.rpm
yum install -y python37u nss -y
# This python package doesn't actually setup python3 only python3.6
ln -s /usr/bin/python3.7 /usr/bin/python3
- script:
name: Run tests
code: |
python3 --version
cd tests
./run_all -v
alpine:
box:
id: alpine:latest
cmd: /bin/sh
steps:
- internal/docker-push:
disable-sync: true
- script:
name: Install packages
code: |
apk update
apk add python3 nss
- script:
name: Run tests
code: |
python3 --version
cd tests
./run_all -v